class Fog::Compute::Ninefold::Flavors

Public Instance Methods

all() click to toggle source
# File lib/fog/ninefold/models/compute/flavors.rb, line 10
def all
  data = service.list_service_offerings
  load(data)
end
get(identifier) click to toggle source
# File lib/fog/ninefold/models/compute/flavors.rb, line 15
def get(identifier)
  data = service.list_service_offerings(:id => identifier)
  if data.empty?
    nil
  else
    new(data[0])
  end
end