Class: Nem::Model::NisNodeInfo

Inherits:
Object
  • Object
show all
Includes:
Nem::Mixin::Assignable
Defined in:
lib/nem/model/nis_node_info.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Nem::Mixin::Assignable

#initialize

Instance Attribute Details

#nis_infoObject (readonly)

Returns the value of attribute nis_info.



26
27
28
# File 'lib/nem/model/nis_node_info.rb', line 26

def nis_info
  @nis_info
end

#nodeObject (readonly)

Returns the value of attribute node.



26
27
28
# File 'lib/nem/model/nis_node_info.rb', line 26

def node
  @node
end

Class Method Details

.new_from_nis_node_info(hash) ⇒ Object



28
29
30
31
32
33
# File 'lib/nem/model/nis_node_info.rb', line 28

def self.new_from_nis_node_info(hash)
  new(
    node: Node.new_from_node(hash[:node]),
    nis_info: NisInfo.new_from_nis_info(hash[:nisInfo])
  )
end