Class: FakeMollie::Fakes::Customer

Inherits:
Base
  • Object
show all
Defined in:
lib/fake_mollie/fakes/customer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#emailObject

Returns the value of attribute email.



4
5
6
# File 'lib/fake_mollie/fakes/customer.rb', line 4

def email
  @email
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/fake_mollie/fakes/customer.rb', line 4

def id
  @id
end

#mandatesObject

Returns the value of attribute mandates.



4
5
6
# File 'lib/fake_mollie/fakes/customer.rb', line 4

def mandates
  @mandates
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/fake_mollie/fakes/customer.rb', line 4

def name
  @name
end

#subscriptionsObject

Returns the value of attribute subscriptions.



4
5
6
# File 'lib/fake_mollie/fakes/customer.rb', line 4

def subscriptions
  @subscriptions
end