Class: IIB::Node::REST
- Inherits:
-
Object
- Object
- IIB::Node::REST
- Includes:
- IIB::Node
- Defined in:
- lib/iib/node/REST.rb
Instance Attribute Summary collapse
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(options) ⇒ REST
constructor
A new instance of REST.
- #name ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Methods included from IIB::Node
create_local_node, delete_local_node, get_all_local_nodes, new
Constructor Details
#initialize(options) ⇒ REST
Returns a new instance of REST.
25 26 27 28 |
# File 'lib/iib/node/REST.rb', line 25 def initialize() @hostname = [:hostname] @port = [:port] end |
Instance Attribute Details
#port ⇒ Object (readonly)
Returns the value of attribute port.
23 24 25 |
# File 'lib/iib/node/REST.rb', line 23 def port @port end |
Instance Method Details
#name ⇒ Object
30 31 32 33 |
# File 'lib/iib/node/REST.rb', line 30 def name rest_json = get_rest_json rest_json["name"] end |
#start ⇒ Object
35 36 37 |
# File 'lib/iib/node/REST.rb', line 35 def start action_not_remotable end |
#stop ⇒ Object
39 40 41 |
# File 'lib/iib/node/REST.rb', line 39 def stop action_not_remotable end |