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