Sha256: 7d83302dacd8a7e8718b9697b0834488bb3da50e6caa876289d4ef1569749718

Contents?: true

Size: 829 Bytes

Versions: 12

Compression:

Stored size: 829 Bytes

Contents

unless Fog.mocking?

  module Fog
    module Rackspace
      class Servers

        # Get details for flavor by id
        #
        # ==== 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 get_flavor_details(flavor_id)
          request(
            :expects  => [200, 203],
            :method   => 'GET',
            :path     => "flavors/#{flavor_id}.json"
          )
        end

      end
    end
  end

else

  module Fog
    module Rackspace
      class Servers

        def get_flavor_details(flavor_id)
        end

      end
    end
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fog-0.0.42 lib/fog/rackspace/requests/servers/get_flavor_details.rb
fog-0.0.41 lib/fog/rackspace/requests/servers/get_flavor_details.rb
fog-0.0.40 lib/fog/rackspace/requests/servers/get_flavor_details.rb
fog-0.0.39 lib/fog/rackspace/requests/servers/get_flavor_details.rb
fog-0.0.38 lib/fog/rackspace/requests/servers/get_flavor_details.rb
fog-0.0.37 lib/fog/rackspace/requests/servers/get_flavor_details.rb
fog-0.0.36 lib/fog/rackspace/requests/servers/get_flavor_details.rb
fog-0.0.35 lib/fog/rackspace/requests/servers/get_flavor_details.rb
fog-0.0.34 lib/fog/rackspace/requests/servers/get_flavor_details.rb
fog-0.0.33 lib/fog/rackspace/requests/servers/get_flavor_details.rb
fog-0.0.32 lib/fog/rackspace/requests/servers/get_flavor_details.rb
fog-0.0.31 lib/fog/rackspace/requests/servers/get_flavor_details.rb