Class: FakeMollie::Fakes::Customer
- Defined in:
- lib/fake_mollie/fakes/customer.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#id ⇒ Object
Returns the value of attribute id.
-
#mandates ⇒ Object
Returns the value of attribute mandates.
-
#name ⇒ Object
Returns the value of attribute name.
-
#subscriptions ⇒ Object
Returns the value of attribute subscriptions.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Customer
constructor
A new instance of Customer.
Constructor Details
#initialize(args = {}) ⇒ Customer
Returns a new instance of Customer.
6 7 8 9 10 11 12 |
# File 'lib/fake_mollie/fakes/customer.rb', line 6 def initialize(args = {}) super @id ||= SecureRandom.hex(10) @mandates ||= [] @subscriptions ||= [] end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
4 5 6 |
# File 'lib/fake_mollie/fakes/customer.rb', line 4 def email @email end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/fake_mollie/fakes/customer.rb', line 4 def id @id end |
#mandates ⇒ Object
Returns the value of attribute mandates.
4 5 6 |
# File 'lib/fake_mollie/fakes/customer.rb', line 4 def mandates @mandates end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/fake_mollie/fakes/customer.rb', line 4 def name @name end |
#subscriptions ⇒ Object
Returns the value of attribute subscriptions.
4 5 6 |
# File 'lib/fake_mollie/fakes/customer.rb', line 4 def subscriptions @subscriptions end |