Method: Netica::ActiveNetwork#state

Defined in:
lib/netica/active_network.rb

#stateHash

Export the state of the ActiveNetwork as a Hash

Returns:

  • (Hash)

    network state and object class name



51
52
53
54
55
56
57
58
59
# File 'lib/netica/active_network.rb', line 51

def state
  {
    :network     => network.state,
    :class       => self.class.to_s,
    :created_at  => self.created_at,
    :updated_at  => self.updated_at,
    :reloaded_at => self.reloaded_at
  }
end