Sha256: c47b00bf26481335d529d7442d744f96d0952885e6fbfad7798585be7a6883e2

Contents?: true

Size: 726 Bytes

Versions: 36

Compression:

Stored size: 726 Bytes

Contents

module Fog
  module Linode
    class Compute
      class Real

        # Get available plans
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        # TODO: docs
        def avail_linodeplans(linodeplan_id = nil)
          options = {}
          if linodeplan_id
            options.merge!(:planId => linodeplan_id)
          end
          request(
            :expects  => 200,
            :method   => 'GET',
            :query    => { :api_action => 'avail.linodeplans' }.merge!(options)
          )
        end

      end

      class Mock

        def avail_linodeplans(linodeplan_id = nil)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

36 entries across 36 versions & 3 rubygems

Version Path
fog-0.5.1 lib/fog/compute/requests/linode/avail_linodeplans.rb
fog-0.5.0 lib/fog/compute/requests/linode/avail_linodeplans.rb
phpfog-fog-0.4.1.3 lib/fog/compute/requests/linode/avail_linodeplans.rb
phpfog-fog-0.4.1.2 lib/fog/compute/requests/linode/avail_linodeplans.rb
phpfog-fog-0.4.1.1 lib/fog/compute/requests/linode/avail_linodeplans.rb
phpfog-fog-0.4.1 lib/fog/compute/requests/linode/avail_linodeplans.rb
fog-0.4.1 lib/fog/compute/requests/linode/avail_linodeplans.rb
fog-0.4.0 lib/fog/linode/requests/compute/avail_linodeplans.rb
fog-0.3.34 lib/fog/linode/requests/compute/avail_linodeplans.rb
fog-0.3.33 lib/fog/linode/requests/compute/avail_linodeplans.rb
fog-0.3.32 lib/fog/linode/requests/compute/avail_linodeplans.rb
fog-0.3.31 lib/fog/linode/requests/compute/avail_linodeplans.rb
fog-0.3.30 lib/fog/linode/requests/compute/avail_linodeplans.rb
fog-0.3.29 lib/fog/linode/requests/compute/avail_linodeplans.rb
fog-0.3.28 lib/fog/linode/requests/compute/avail_linodeplans.rb
fog-0.3.27 lib/fog/linode/requests/compute/avail_linodeplans.rb
fog-0.3.26 lib/fog/linode/requests/compute/avail_linodeplans.rb
fog-0.3.25 lib/fog/linode/requests/compute/avail_linodeplans.rb
fog-0.3.24 lib/fog/linode/requests/compute/avail_linodeplans.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/linode/requests/compute/avail_linodeplans.rb