Class: Fog::Compute::Ecloud::ServerConfigurationOptions

Inherits:
Ecloud::Collection
  • Object
show all
Defined in:
lib/fog/compute/ecloud/models/server_configuration_options.rb

Instance Method Summary collapse

Methods inherited from Ecloud::Collection

#check_href!, #load

Instance Method Details

#allObject



11
12
13
14
# File 'lib/fog/compute/ecloud/models/server_configuration_options.rb', line 11

def all
  data = service.get_server_configuration_options(href).body
  load(data)
end

#get(uri) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/fog/compute/ecloud/models/server_configuration_options.rb', line 16

def get(uri)
  if data = service.get_server_configuration_option(uri)
    new(data.body)
  end
rescue Fog::Errors::NotFound
  nil
end