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

#nisInfoNis::Struct::NodeInfo Also known as: nis_info

Returns the current value of nisInfo.

Returns:

  • (Nis::Struct::NodeInfo)

    the current value of nisInfo



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

def nisInfo
  @nisInfo
end

#nodeNis::Struct::NodeInfo

Returns the current value of node.

Returns:

  • (Nis::Struct::NodeInfo)

    the current value of node



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::Node.build(attrs[:node]),
    nisInfo: Nis::Struct::ApplicationMetaData.build(attrs[:nisInfo])
  )
end