Module: Paymill::Operations::All::ClassMethods
- Defined in:
- lib/paymill/operations/all.rb
Instance Method Summary collapse
-
#all(options = {}) ⇒ Array
Retrieves all available objects from the Paymill API.
Instance Method Details
#all(options = {}) ⇒ Array
Retrieves all available objects from the Paymill API
9 10 11 12 13 14 15 16 |
# File 'lib/paymill/operations/all.rb', line 9 def all( = {}) response = Paymill.request(:get, "#{self.name.split("::").last.downcase}s/", ) results = [] response["data"].each do |obj| results << self.new(obj) end results end |