Class: Proctor::Node
- Inherits:
-
Object
- Object
- Proctor::Node
- Includes:
- Util::Helpers
- Defined in:
- lib/proctor/node.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#handle ⇒ Object
readonly
Returns the value of attribute handle.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, data) ⇒ Node
constructor
A new instance of Node.
- #services ⇒ Object
Methods included from Util::Helpers
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
8 9 10 |
# File 'lib/proctor/node.rb', line 8 def data @data end |
#handle ⇒ Object (readonly)
Returns the value of attribute handle.
8 9 10 |
# File 'lib/proctor/node.rb', line 8 def handle @handle end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/proctor/node.rb', line 8 def name @name end |
Instance Method Details
#services ⇒ Object
16 17 18 |
# File 'lib/proctor/node.rb', line 16 def services @data end |