Sha256: 9931a57f1bd6c6803fcf1298c58ce4d1ace3ba464b4261d07a5b0381d4eeccf5
Contents?: true
Size: 551 Bytes
Versions: 29
Compression:
Stored size: 551 Bytes
Contents
require 'fog/core/collection' require 'fog/rackspace/models/compute/flavor' module Fog module Rackspace class Compute class Flavors < Fog::Collection model Fog::Rackspace::Compute::Flavor def all data = connection.list_flavors_detail.body['flavors'] load(data) end def get(flavor_id) data = connection.get_flavor_details(flavor_id).body['flavor'] new(data) rescue Fog::Rackspace::Compute::NotFound nil end end end end end
Version data entries
29 entries across 29 versions & 2 rubygems