Class: Bitkassa::StatusRequest

Inherits:
Request
  • Object
show all
Defined in:
lib/bitkassa/status_request.rb

Overview

Checks the status of a payment

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Request

#initialize, #perform

Constructor Details

This class inherits a constructor from Bitkassa::Request

Instance Attribute Details

#payment_idObject

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

#attributesObject



6
7
8
# File 'lib/bitkassa/status_request.rb', line 6

def attributes
  { payment_id: @payment_id }
end

#can_perform?Boolean

Returns:

  • (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_actionObject



10
11
12
# File 'lib/bitkassa/status_request.rb', line 10

def payload_action
  "get_payment_status"
end