Class: Nis::Struct::ExtendedNodeExperiencePair

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Util::Assignable

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

Instance Attribute Details

#experienceNis::Struct::NodeExperience

Returns the current value of experience.

Returns:



6
7
8
# File 'lib/nis/struct/extended_node_experience_pair.rb', line 6

def experience
  @experience
end

#experiencesObject

Returns the value of attribute experiences.



8
9
10
# File 'lib/nis/struct/extended_node_experience_pair.rb', line 8

def experiences
  @experiences
end

#nodeNis::Struct::Node

Returns the current value of node.

Returns:



6
7
8
# File 'lib/nis/struct/extended_node_experience_pair.rb', line 6

def node
  @node
end

#syncsInteger

Returns the current value of syncs.

Returns:

  • (Integer)

    the current value of syncs



6
7
8
# File 'lib/nis/struct/extended_node_experience_pair.rb', line 6

def syncs
  @syncs
end

Class Method Details

.build(attrs) ⇒ Object



10
11
12
13
# File 'lib/nis/struct/extended_node_experience_pair.rb', line 10

def self.build(attrs)
  attrs[:node] = Node.build(attrs[:node])
  new(attrs)
end