Class: Mollie::Customer
- Defined in:
- lib/mollie/customer.rb,
lib/mollie/customer/mandate.rb,
lib/mollie/customer/payment.rb,
lib/mollie/customer/subscription.rb
Defined Under Namespace
Classes: Mandate, Payment, Subscription
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#email ⇒ Object
Returns the value of attribute email.
-
#id ⇒ Object
Returns the value of attribute id.
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Base
Instance Method Summary collapse
- #mandates(options = {}) ⇒ Object
- #payments(options = {}) ⇒ Object
- #subscriptions(options = {}) ⇒ Object
Methods inherited from Base
all, #assign_attributes, cancel, create, #delete, delete, get, id_param, #initialize, parent_id, request, resource_name, update, #update
Constructor Details
This class inherits a constructor from Mollie::Base
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
3 4 5 |
# File 'lib/mollie/customer.rb', line 3 def created_at @created_at end |
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/mollie/customer.rb', line 3 def email @email end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/mollie/customer.rb', line 3 def id @id end |
#locale ⇒ Object
Returns the value of attribute locale.
3 4 5 |
# File 'lib/mollie/customer.rb', line 3 def locale @locale end |
#metadata ⇒ Object
Returns the value of attribute metadata.
3 4 5 |
# File 'lib/mollie/customer.rb', line 3 def @metadata end |
#mode ⇒ Object
Returns the value of attribute mode.
3 4 5 |
# File 'lib/mollie/customer.rb', line 3 def mode @mode end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/mollie/customer.rb', line 3 def name @name end |
Instance Method Details
#mandates(options = {}) ⇒ Object
19 20 21 |
# File 'lib/mollie/customer.rb', line 19 def mandates( = {}) Mandate.all(.merge(customer_id: id)) end |
#payments(options = {}) ⇒ Object
23 24 25 |
# File 'lib/mollie/customer.rb', line 23 def payments( = {}) Payment.all(.merge(customer_id: id)) end |
#subscriptions(options = {}) ⇒ Object
27 28 29 |
# File 'lib/mollie/customer.rb', line 27 def subscriptions( = {}) Subscription.all(.merge(customer_id: id)) end |