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