Class: Bitkassa::StatusRequest
- Defined in:
- lib/bitkassa/status_request.rb
Overview
Checks the status of a payment
Instance Attribute Summary collapse
-
#payment_id ⇒ Object
Returns the value of attribute payment_id.
Instance Method Summary collapse
Methods inherited from Request
Constructor Details
This class inherits a constructor from Bitkassa::Request
Instance Attribute Details
#payment_id ⇒ Object
Returns the value of attribute payment_id.
4 5 6 |
# File 'lib/bitkassa/status_request.rb', line 4 def payment_id @payment_id end |
Instance Method Details
#attributes ⇒ Object
6 7 8 |
# File 'lib/bitkassa/status_request.rb', line 6 def attributes { payment_id: @payment_id } end |
#can_perform? ⇒ Boolean
14 15 16 17 18 |
# File 'lib/bitkassa/status_request.rb', line 14 def can_perform? return false if payment_id.nil? super end |
#payload_action ⇒ Object
10 11 12 |
# File 'lib/bitkassa/status_request.rb', line 10 def payload_action "get_payment_status" end |