Sha256: bfbf5616d7a0b16dd2b84c62dd3ee7a0c205ea7468e23dd3ebb34d0302e50863

Contents?: true

Size: 836 Bytes

Versions: 30

Compression:

Stored size: 836 Bytes

Contents

module Fog
  module NewServers
    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

    class Mock

      def list_plans
        Fog::Mock.not_implemented
      end

    end
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
fog-0.2.30 lib/fog/new_servers/requests/list_plans.rb
fog-0.2.28 lib/fog/new_servers/requests/list_plans.rb
fog-0.2.27 lib/fog/new_servers/requests/list_plans.rb
fog-0.2.26 lib/fog/new_servers/requests/list_plans.rb
fog-0.2.25 lib/fog/new_servers/requests/list_plans.rb
fog-0.2.24 lib/fog/new_servers/requests/list_plans.rb
tecnh-fog-0.2.23.vpc lib/fog/new_servers/requests/list_plans.rb
fog-0.2.23 lib/fog/new_servers/requests/list_plans.rb
fog-0.2.22 lib/fog/new_servers/requests/list_plans.rb
fog-0.2.21 lib/fog/new_servers/requests/list_plans.rb
fog-0.2.20 lib/fog/new_servers/requests/list_plans.rb
fog-0.2.19 lib/fog/new_servers/requests/list_plans.rb
fog-0.2.18 lib/fog/new_servers/requests/list_plans.rb
fog-0.2.17 lib/fog/new_servers/requests/list_plans.rb
fog-0.2.16 lib/fog/new_servers/requests/list_plans.rb
fog-0.2.15 lib/fog/new_servers/requests/list_plans.rb
fog-0.2.14 lib/fog/new_servers/requests/list_plans.rb
fog-0.2.13 lib/fog/new_servers/requests/list_plans.rb
fog-0.2.12 lib/fog/new_servers/requests/list_plans.rb
fog-0.2.11 lib/fog/new_servers/requests/list_plans.rb