Sha256: 2260ee31696dec5306cdcdd5b74b1892a2c3f6693ff2c7b5233c16bbc9463564

Contents?: true

Size: 815 Bytes

Versions: 9

Compression:

Stored size: 815 Bytes

Contents

module Fog
  module NewServers
    class Compute
      class Real

        # List available plans
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        #     * 'description'<~String> - Description of the plan
        #     * 'id'<~String>     - Id of the plan
        #     * 'name'<~String>   - Name of the plan
        #     * 'rate'<~String>   - Cost per hour of the plan
        #     * 'os'<~String>     - Operating system of the plan
        #     * 'config'<~String> - Configuration of the plan
        #
        def list_plans
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::ToHashDocument.new,
            :path     => 'api/listPlans'
          )
        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/new_servers/list_plans.rb
fog-0.8.1 lib/fog/compute/requests/new_servers/list_plans.rb
fog-0.8.0 lib/fog/compute/requests/new_servers/list_plans.rb
fog-0.7.2 lib/fog/compute/requests/new_servers/list_plans.rb
fog-0.7.1 lib/fog/compute/requests/new_servers/list_plans.rb
fog-0.7.0 lib/fog/compute/requests/new_servers/list_plans.rb
fog-0.6.0 lib/fog/compute/requests/new_servers/list_plans.rb
fog-0.5.3 lib/fog/compute/requests/new_servers/list_plans.rb
fog-0.5.2 lib/fog/compute/requests/new_servers/list_plans.rb