Sha256: eff4be8c7fa59bcc0875aad65b233af99f03d6bbc84425320548fe2ca45b27d9
Contents?: true
Size: 482 Bytes
Versions: 2
Compression:
Stored size: 482 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) # TODO(jon): Suggest an object attribute be returned instead of this. Util.convert_to_rainforest_object(response, api_key, class_name.downcase) end end def self.included(base) base.extend(ClassMethods) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rainforest-1.0.3 | lib/rainforest/api_operations/list.rb |
rainforest-1.0.1 | lib/rainforest/api_operations/list.rb |