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

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

Instance Method Summary collapse

Instance Method Details

#allObject



7
8
9
10
# File 'lib/fog/compute/serverlove/models/servers.rb', line 7

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

#get(server_id) ⇒ Object



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

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