Exception: Pay::InvalidPaymentMethod
- Defined in:
- lib/pay.rb
Instance Attribute Summary collapse
-
#payment ⇒ Object
readonly
Returns the value of attribute payment.
Instance Method Summary collapse
-
#initialize(payment) ⇒ InvalidPaymentMethod
constructor
A new instance of InvalidPaymentMethod.
- #message ⇒ Object
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
#payment ⇒ Object (readonly)
Returns the value of attribute payment.
123 124 125 |
# File 'lib/pay.rb', line 123 def payment @payment end |
Instance Method Details
#message ⇒ Object
129 130 131 |
# File 'lib/pay.rb', line 129 def "This payment attempt failed because of an invalid payment method." end |