Sha256: 552d7439f12ea3c48a5f4303ee9cedc7611a18efc6a7f79953474cd79a2993d4
Contents?: true
Size: 551 Bytes
Versions: 16
Compression:
Stored size: 551 Bytes
Contents
require 'fog/core/collection' require 'fog/compute/models/rackspace/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
16 entries across 16 versions & 2 rubygems