Sha256: 2732dac468f6ae036e9e160ff85329d0d57441891c48c435914c71bee27e6a0d

Contents?: true

Size: 711 Bytes

Versions: 11

Compression:

Stored size: 711 Bytes

Contents

unless Fog.mocking?

  module Fog
    class Slicehost

      # 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::GetFlavors.new,
          :path     => 'flavors.xml'
        )
      end

    end
  end

else

  module Fog
    class Slicehost

      def get_flavors
      end

    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fog-0.0.42 lib/fog/slicehost/requests/get_flavors.rb
fog-0.0.41 lib/fog/slicehost/requests/get_flavors.rb
fog-0.0.40 lib/fog/slicehost/requests/get_flavors.rb
fog-0.0.39 lib/fog/slicehost/requests/get_flavors.rb
fog-0.0.38 lib/fog/slicehost/requests/get_flavors.rb
fog-0.0.37 lib/fog/slicehost/requests/get_flavors.rb
fog-0.0.36 lib/fog/slicehost/requests/get_flavors.rb
fog-0.0.35 lib/fog/slicehost/requests/get_flavors.rb
fog-0.0.34 lib/fog/slicehost/requests/get_flavors.rb
fog-0.0.33 lib/fog/slicehost/requests/get_flavors.rb
fog-0.0.32 lib/fog/slicehost/requests/get_flavors.rb