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.



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

def initialize(payment)
  @payment = payment
end

Instance Attribute Details

#payment ⇒ Object (readonly)

Returns the value of attribute payment.



132
133
134
# File 'lib/pay.rb', line 132

def payment
  @payment
end

Instance Method Details

#message ⇒ Object



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

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