Exception: Pay::ActionRequired

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payment) ⇒ ActionRequired

Returns a new instance of ActionRequired.



137
138
139
# File 'lib/pay.rb', line 137

def initialize(payment)
  @payment = payment
end

Instance Attribute Details

#paymentObject (readonly)

Returns the value of attribute payment.



135
136
137
# File 'lib/pay.rb', line 135

def payment
  @payment
end

Instance Method Details

#messageObject



141
142
143
# File 'lib/pay.rb', line 141

def message
  "This payment attempt failed because additional action is required before it can be completed."
end