Class: Fog::Compute::DigitalOcean::Flavors

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

Instance Method Summary collapse

Instance Method Details

#all(filters = {}) ⇒ Fog::Compute::DigitalOceanV2:Flavor

Retrieves flavours (aka. sizes)

Returns:

  • (Fog::Compute::DigitalOceanV2:Flavor)

Raises:

  • (Fog::Compute::DigitalOceanV2::NotFound)
    • HTTP 404

  • (Fog::Compute::DigitalOceanV2::BadRequest)
    • HTTP 400

  • (Fog::Compute::DigitalOceanV2::InternalServerError)
    • HTTP 500

  • (Fog::Compute::DigitalOceanV2::ServiceError)

See Also:



14
15
16
17
# File 'lib/fog/compute/digitalocean/models/flavors.rb', line 14

def all(filters = {})
  data = service.list_flavors(filters).body["sizes"]
  load(data)
end