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