Sha256: 6d04b211e3e0f04d1c3f261418e536a30d13ea169a2e6ec4d0dd2317c70b6d82

Contents?: true

Size: 747 Bytes

Versions: 25

Compression:

Stored size: 747 Bytes

Contents

module Fog
  module Compute
    class Slicehost
      class Real

        require 'fog/slicehost/parsers/compute/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::Compute::Slicehost::GetFlavors.new,
            :path     => 'flavors.xml'
          )
        end

      end
    end
  end
end

Version data entries

25 entries across 25 versions & 7 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/compute/get_flavors.rb
michiels-fog-1.3.1 lib/fog/slicehost/requests/compute/get_flavors.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/slicehost/requests/compute/get_flavors.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/compute/get_flavors.rb
fog-1.3.1 lib/fog/slicehost/requests/compute/get_flavors.rb
fog-1.3.0 lib/fog/slicehost/requests/compute/get_flavors.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/compute/get_flavors.rb
fog-1.2.0 lib/fog/slicehost/requests/compute/get_flavors.rb
ktheory-fog-1.1.2 lib/fog/slicehost/requests/compute/get_flavors.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/compute/get_flavors.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/compute/get_flavors.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/compute/get_flavors.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/compute/get_flavors.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/compute/get_flavors.rb
fog-1.1.2 lib/fog/slicehost/requests/compute/get_flavors.rb
fog_tractical-1.1.4 lib/fog/slicehost/requests/compute/get_flavors.rb
fog_tractical-1.1.3 lib/fog/slicehost/requests/compute/get_flavors.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/requests/compute/get_flavors.rb
fog-1.1.1 lib/fog/slicehost/requests/compute/get_flavors.rb
fog-1.1.0 lib/fog/slicehost/requests/compute/get_flavors.rb