Module: Paymill::Operations::All::ClassMethods

Defined in:
lib/paymill/operations/all.rb

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Array

Retrieves all available objects from the Paymill API

Parameters:

  • options (Hash) (defaults to: {})

    Options to pass to the API

Returns:

  • (Array)

    The available objects



9
10
11
12
# File 'lib/paymill/operations/all.rb', line 9

def all(options = {})
  response = Paymill.request(:get, "#{self.name.split("::").last.downcase}s/", options)
  results_from response
end