Class: Proctor::Node

Inherits:
Object
  • Object
show all
Includes:
Util::Helpers
Defined in:
lib/proctor/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util::Helpers

#md5_handle

Constructor Details

#initialize(name, data) ⇒ Node

Returns a new instance of Node.



10
11
12
13
14
# File 'lib/proctor/node.rb', line 10

def initialize(name, data)
  @name = name
  @data = data
  @handle = md5_handle(name)
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



8
9
10
# File 'lib/proctor/node.rb', line 8

def data
  @data
end

#handleObject (readonly)

Returns the value of attribute handle.



8
9
10
# File 'lib/proctor/node.rb', line 8

def handle
  @handle
end

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/proctor/node.rb', line 8

def name
  @name
end

Instance Method Details

#servicesObject



16
17
18
# File 'lib/proctor/node.rb', line 16

def services
  @data
end