Sha256: 31fe52890097ff6ce1308a3affa53c2b104d41b41cdf3ad2cfce534762f7ebf8
Contents?: true
Size: 723 Bytes
Versions: 16
Compression:
Stored size: 723 Bytes
Contents
unless Fog.mocking? module Fog module Rackspace class Servers # List all flavors (IDs and names only) # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'id'<~Integer> - Id of the flavor # * 'name'<~String> - Name of the flavor def list_flavors request( :expects => [200, 203], :method => 'GET', :path => 'flavors.json' ) end end end end else module Fog module Rackspace class Servers def list_flavors raise MockNotImplemented.new("Contributions welcome!") end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems