Exception: Pay::InvalidPaymentMethod

Inherits:
Error
  • Object
show all
Defined in:
lib/pay.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payment) ⇒ InvalidPaymentMethod

Returns a new instance of InvalidPaymentMethod.



125
126
127
# File 'lib/pay.rb', line 125

def initialize(payment)
  @payment = payment
end

Instance Attribute Details

#paymentObject (readonly)

Returns the value of attribute payment.



123
124
125
# File 'lib/pay.rb', line 123

def payment
  @payment
end

Instance Method Details

#messageObject



129
130
131
# File 'lib/pay.rb', line 129

def message
  "This payment attempt failed because of an invalid payment method."
end