lib/paymill/operations/all.rb in paymill-0.2.0 vs lib/paymill/operations/all.rb in paymill-0.2.1
- old
+ new
@@ -1,11 +1,11 @@
module Paymill
module Operations
module All
module ClassMethods
- def all
- response = Paymill.request(:get, "#{self.name.split("::").last.downcase}s/", {})
+ def all(options = {})
+ response = Paymill.request(:get, "#{self.name.split("::").last.downcase}s/", options)
results = []
response["data"].each do |obj|
results << self.new(obj)
end
results
@@ -15,6 +15,6 @@
def self.included(base)
base.extend(ClassMethods)
end
end
end
-end
\ No newline at end of file
+end