Class: Ebanx::Command::PayoutRetrieve

Inherits:
Command
  • Object
show all
Defined in:
lib/ebanx/command/payout_retrieve.rb

Instance Attribute Summary

Attributes inherited from Command

#params, #request_action, #request_body, #request_method, #response_type

Instance Method Summary collapse

Methods inherited from Command

#valid?

Constructor Details

#initialize(params) ⇒ PayoutRetrieve

Returns a new instance of PayoutRetrieve.



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

def initialize(params)
  @params         = params
  @request_method = :post
  @request_action = 'payout/retrieve'
  @response_type  = :json
end

Instance Method Details

#validateObject



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

def validate
  validate_presence_or :external_reference, :uid
end