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.
122 123 124 |
# File 'lib/pay.rb', line 122 def initialize(payment) @payment = payment end |
Instance Attribute Details
#payment ⇒ Object (readonly)
Returns the value of attribute payment.
120 121 122 |
# File 'lib/pay.rb', line 120 def payment @payment end |
Instance Method Details
#message ⇒ Object
126 127 128 |
# File 'lib/pay.rb', line 126 def "This payment attempt failed because of an invalid payment method." end |