Class: Ebanx::Command::RefundOrCancel
- Defined in:
- lib/ebanx/command/refund_or_cancel.rb
Instance Attribute Summary
Attributes inherited from Command
#params, #request_action, #request_body, #request_method, #response_type
Instance Method Summary collapse
-
#initialize(params) ⇒ RefundOrCancel
constructor
A new instance of RefundOrCancel.
- #validate ⇒ Object
Methods inherited from Command
Constructor Details
#initialize(params) ⇒ RefundOrCancel
Returns a new instance of RefundOrCancel.
4 5 6 7 8 9 |
# File 'lib/ebanx/command/refund_or_cancel.rb', line 4 def initialize(params) @params = params @request_method = :post @request_action = 'refundOrCancel' @response_type = :json end |
Instance Method Details
#validate ⇒ Object
11 12 13 14 |
# File 'lib/ebanx/command/refund_or_cancel.rb', line 11 def validate validate_presence :hash validate_presence :description end |