Class: Ebanx::Command::Direct
- Inherits:
-
Ebanx::Command
- Object
- Ebanx::Command
- Ebanx::Command::Direct
- Defined in:
- lib/ebanx/command/direct.rb
Instance Method Summary collapse
-
#initialize(params) ⇒ Direct
constructor
A new instance of Direct.
- #validate ⇒ Object
Constructor Details
#initialize(params) ⇒ Direct
4 5 6 7 8 9 10 |
# File 'lib/ebanx/command/direct.rb', line 4 def initialize(params) @params = params @request_method = :post @request_action = 'direct' @response_type = :json @request_body = true end |
Instance Method Details
#validate ⇒ Object
12 13 14 15 16 |
# File 'lib/ebanx/command/direct.rb', line 12 def validate validate_presence :operation validate_presence :mode validate_presence :payment end |