Class: Fog::Compute::Serverlove::Servers
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Serverlove::Servers
- Defined in:
- lib/fog/serverlove/models/compute/servers.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
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 |