Class: Praegustator::Node
- Inherits:
-
Object
- Object
- Praegustator::Node
- Defined in:
- lib/praegustator/node.rb
Instance Attribute Summary collapse
-
#ipaddress ⇒ Object
Returns the value of attribute ipaddress.
-
#name ⇒ Object
Returns the value of attribute name.
-
#query ⇒ Object
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(name, ipaddress, query) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(name, ipaddress, query) ⇒ Node
Returns a new instance of Node.
4 5 6 7 8 |
# File 'lib/praegustator/node.rb', line 4 def initialize name,ipaddress,query @name = name @ipaddress =ipaddress @query = query end |
Instance Attribute Details
#ipaddress ⇒ Object
Returns the value of attribute ipaddress.
3 4 5 |
# File 'lib/praegustator/node.rb', line 3 def ipaddress @ipaddress end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/praegustator/node.rb', line 3 def name @name end |
#query ⇒ Object
Returns the value of attribute query.
3 4 5 |
# File 'lib/praegustator/node.rb', line 3 def query @query end |