Class: SynapsePay::WithdrawalEndpoint
Instance Attribute Summary
Attributes inherited from APIEndpoint
#client
Instance Method Summary
collapse
Methods inherited from APIEndpoint
#initialize
Instance Method Details
#all(params = {}, headers = {}) ⇒ Object
4
5
6
7
8
|
# File 'lib/synapse_pay/endpoints/withdrawal_endpoint.rb', line 4
def all(params={}, ={})
method = APIMethod.new(:post, "/withdraw/show", params, , self)
json = @client.execute(method)
APIList.new(:Withdrawal, json[:withdraws], method, @client)
end
|
#create(params = {}, headers = {}) ⇒ Object
10
11
12
13
14
|
# File 'lib/synapse_pay/endpoints/withdrawal_endpoint.rb', line 10
def create(params={}, ={})
method = APIMethod.new(:post, "/withdraw/add", params, , self)
json = @client.execute(method)
Withdrawal.new(json[:withdrawal], method, @client)
end
|