Class: Fog::Compute::Serverlove::Servers

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/serverlove/models/compute/servers.rb

Instance Method Summary collapse

Instance Method Details

#allObject



10
11
12
13
# File 'lib/fog/serverlove/models/compute/servers.rb', line 10

def all
  data = service.get_servers.body
  load(data)
end

#get(server_id) ⇒ Object



15
16
17
18
# File 'lib/fog/serverlove/models/compute/servers.rb', line 15

def get(server_id)
  data = service.get_server(server_id).body
  new(data)
end