Sha256: 95c52c2f62c63ab769d0acc9650939ebfe4d7be29af334efd77cbe0b69d328f8

Contents?: true

Size: 856 Bytes

Versions: 16

Compression:

Stored size: 856 Bytes

Contents

unless Fog.mocking?

  module Fog
    module Rackspace
      class Servers

        # List all flavors
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'id'<~Integer> - Id of the flavor
        #     * 'name'<~String> - Name of the flavor
        #     * 'ram'<~Integer> - Amount of ram for the flavor
        #     * 'disk'<~Integer> - Amount of diskspace for the flavor
        def list_flavors_detail
          request(
            :expects  => [200, 203],
            :method   => 'GET',
            :path     => 'flavors/detail.json'
          )
        end

      end
    end
  end

else

  module Fog
    module Rackspace
      class Servers

        def list_flavors_detail
          raise MockNotImplemented.new("Contributions welcome!")
        end

      end
    end
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fog-0.0.58 lib/fog/rackspace/requests/servers/list_flavors_detail.rb
fog-0.0.57 lib/fog/rackspace/requests/servers/list_flavors_detail.rb
fog-0.0.56 lib/fog/rackspace/requests/servers/list_flavors_detail.rb
fog-0.0.55 lib/fog/rackspace/requests/servers/list_flavors_detail.rb
fog-0.0.54 lib/fog/rackspace/requests/servers/list_flavors_detail.rb
fog-0.0.53 lib/fog/rackspace/requests/servers/list_flavors_detail.rb
fog-0.0.52 lib/fog/rackspace/requests/servers/list_flavors_detail.rb
fog-0.0.51 lib/fog/rackspace/requests/servers/list_flavors_detail.rb
fog-0.0.50 lib/fog/rackspace/requests/servers/list_flavors_detail.rb
fog-0.0.49 lib/fog/rackspace/requests/servers/list_flavors_detail.rb
fog-0.0.48 lib/fog/rackspace/requests/servers/list_flavors_detail.rb
fog-0.0.47 lib/fog/rackspace/requests/servers/list_flavors_detail.rb
fog-0.0.46 lib/fog/rackspace/requests/servers/list_flavors_detail.rb
fog-0.0.45 lib/fog/rackspace/requests/servers/list_flavors_detail.rb
fog-0.0.44 lib/fog/rackspace/requests/servers/list_flavors_detail.rb
fog-0.0.43 lib/fog/rackspace/requests/servers/list_flavors_detail.rb