Sha256: d6932e2e9b12b90e6ae70a2a78e6399e6def0ddc4a9c03c792921e23e2b6f839

Contents?: true

Size: 380 Bytes

Versions: 4

Compression:

Stored size: 380 Bytes

Contents

module Rainforest
  module APIOperations
    module List
      module ClassMethods
        def all(filters={}, api_key=nil)
          response, api_key = Rainforest.request(:get, url, api_key, filters)
          Util.convert_to_rainforest_object(response, api_key)
        end
      end

      def self.included(base)
        base.extend(ClassMethods)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rainforest-1.0.7 lib/rainforest/api_operations/list.rb
rainforest-1.0.6 lib/rainforest/api_operations/list.rb
rainforest-1.0.5 lib/rainforest/api_operations/list.rb
rainforest-1.0.4 lib/rainforest/api_operations/list.rb