Sha256: 65f60c948bbd531960a8d74fe658ac5a8271006349fc978711948269429bb6e9
Contents?: true
Size: 539 Bytes
Versions: 65
Compression:
Stored size: 539 Bytes
Contents
require 'fog/core/collection' require 'fog/ninefold/models/compute/flavor' module Fog module Compute class Ninefold class Flavors < Fog::Collection model Fog::Compute::Ninefold::Flavor def all data = service.list_service_offerings load(data) end def get(identifier) data = service.list_service_offerings(:id => identifier) if data.empty? nil else new(data[0]) end end end end end end
Version data entries
65 entries across 65 versions & 6 rubygems