Sha256: ae86318c7df9677bf54f9f926592fc292d73e729d531a20fff1d96f3ce15be39

Contents?: true

Size: 708 Bytes

Versions: 8

Compression:

Stored size: 708 Bytes

Contents

module Fog
  module Linode
    class Compute
      class Real

        # List all linodes user has access or delete to
        #
        # ==== Parameters
        # * linodeId<~Integer>: Limit the list to the specified LinodeID
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        # TODO: docs
        def linode_list(linode_id=nil)
          options = {}
          if linode_id
            options.merge!(:linodeId => linode_id)
          end
          request(
            :expects  => 200,
            :method   => 'GET',
            :query    => { :api_action => 'linode.list' }.merge!(options)
          )
        end

      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fog-0.8.1 lib/fog/compute/requests/linode/linode_list.rb
fog-0.8.0 lib/fog/compute/requests/linode/linode_list.rb
fog-0.7.2 lib/fog/compute/requests/linode/linode_list.rb
fog-0.7.1 lib/fog/compute/requests/linode/linode_list.rb
fog-0.7.0 lib/fog/compute/requests/linode/linode_list.rb
fog-0.6.0 lib/fog/compute/requests/linode/linode_list.rb
fog-0.5.3 lib/fog/compute/requests/linode/linode_list.rb
fog-0.5.2 lib/fog/compute/requests/linode/linode_list.rb