Exception: Finicity::DuplicateCustomerError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/finicity/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username) ⇒ DuplicateCustomerError

Returns a new instance of DuplicateCustomerError.



24
25
26
# File 'lib/finicity/errors.rb', line 24

def initialize(username)
  @username = username
end

Instance Attribute Details

#usernameObject (readonly)

Returns the value of attribute username.



22
23
24
# File 'lib/finicity/errors.rb', line 22

def username
  @username
end

Instance Method Details

#to_sObject



28
29
30
# File 'lib/finicity/errors.rb', line 28

def to_s
  "Multiple customers found with username: #{username}"
end