Class: IIB::Node::REST

Inherits:
Object
  • Object
show all
Includes:
IIB::Node
Defined in:
lib/iib/node/REST.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options)
  @hostname = options[:hostname]
  @port     = options[:port]
end

Instance Attribute Details

#portObject (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

#nameObject



30
31
32
33
# File 'lib/iib/node/REST.rb', line 30

def name
  rest_json = get_rest_json
  rest_json["name"]
end

#startObject



35
36
37
# File 'lib/iib/node/REST.rb', line 35

def start
  action_not_remotable
end

#stopObject



39
40
41
# File 'lib/iib/node/REST.rb', line 39

def stop 
  action_not_remotable
end