class TPX_2_2::Network

A set of defined network membership, routing topology, ownership, and network announcements.

Constants

MANDATORY_ATTRIBUTES

Public Class Methods

new(input_hash) click to toggle source

Overrides the default initialize to add a default occurred_at_t.

@param [Hash] input_hash The input hash.

@return [DataModel] The returned object.

Calls superclass method TPX_2_2::DataModel::new
# File lib/tpx/2_2/network.rb, line 17
def initialize(input_hash)
  input_hash[:occurred_at_t] ||= Time.now.getutc.to_i  # TODO: Should we do this here?  Should we do this everywhere except ThreatObservable?
  super input_hash
end