Class: Ebanx::Command::Query

Inherits:
Ebanx::Command show all
Defined in:
lib/ebanx/command/query.rb

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Query

Returns a new instance of Query.



4
5
6
7
8
9
# File 'lib/ebanx/command/query.rb', line 4

def initialize(params)
  @params         = params
  @request_method = :get
  @request_action = 'query'
  @response_type  = :json
end

Instance Method Details

#validateObject



11
12
13
# File 'lib/ebanx/command/query.rb', line 11

def validate
  validate_presence_or :hash, :merchant_payment_code
end