Class: Nis::Struct::NisNodeInfo

Inherits:
Object
  • Object
show all
Includes:
Util::Assignable
Defined in:
lib/nis/struct/nis_node_info.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Util::Assignable

#[], #initialize, #to_hash, #to_json

Instance Attribute Details

#nisInfoObject Also known as: nis_info

Returns the value of attribute nisInfo


7
8
9
# File 'lib/nis/struct/nis_node_info.rb', line 7

def nisInfo
  @nisInfo
end

#nodeNis::Struct::NodeInfo


5
6
7
# File 'lib/nis/struct/nis_node_info.rb', line 5

def node
  @node
end

Class Method Details

.build(attrs) ⇒ Object


12
13
14
15
16
17
# File 'lib/nis/struct/nis_node_info.rb', line 12

def self.build(attrs)
  new(
    node: Nis::Struct::NodeInfo.build(attrs[:node]),
    nisInfo: Nis::Struct::NodeInfo.build(attrs[:nisInfo])
  )
end