Sha256: 432b4770abad861a08d05d837d8227ad76b5236ebefc02af0bff0bc65342864d

Contents?: true

Size: 747 Bytes

Versions: 9

Compression:

Stored size: 747 Bytes

Contents

module Fog
  module Slicehost
    class Compute
      class Real

        require 'fog/compute/parsers/slicehost/get_flavors'

        # Get list of flavors
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        #     * 'id'<~Integer> - Id of the flavor
        #     * 'name'<~String> - Name of the flavor
        #     * 'price'<~Integer> - Price in cents
        #     * 'ram'<~Integer> - Amount of ram for the flavor
        def get_flavors
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::Parsers::Slicehost::Compute::GetFlavors.new,
            :path     => 'flavors.xml'
          )
        end

      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/compute/requests/slicehost/get_flavors.rb
fog-0.8.1 lib/fog/compute/requests/slicehost/get_flavors.rb
fog-0.8.0 lib/fog/compute/requests/slicehost/get_flavors.rb
fog-0.7.2 lib/fog/compute/requests/slicehost/get_flavors.rb
fog-0.7.1 lib/fog/compute/requests/slicehost/get_flavors.rb
fog-0.7.0 lib/fog/compute/requests/slicehost/get_flavors.rb
fog-0.6.0 lib/fog/compute/requests/slicehost/get_flavors.rb
fog-0.5.3 lib/fog/compute/requests/slicehost/get_flavors.rb
fog-0.5.2 lib/fog/compute/requests/slicehost/get_flavors.rb