Sha256: 8ff8692c3788ca163972ab0d8fad2d7802dbcc8b7391571b2f2a3110f9822b47
Contents?: true
Size: 722 Bytes
Versions: 6
Compression:
Stored size: 722 Bytes
Contents
module SynapsePay class DepositEndpoint < APIEndpoint def all(params={}, headers={}) method = APIMethod.new(:post, "/deposit/show", params, headers, self) json = @client.execute(method) APIList.new(:Deposit, json[:deposits], method, @client) end def create(params={}, headers={}) method = APIMethod.new(:post, "/deposit/add", params, headers, self) json = @client.execute(method) Deposit.new(json[:deposit], method, @client) end def micro(params={}, headers={}) method = APIMethod.new(:post, "/deposit/micro", params, headers, self) json = @client.execute(method) APIList.new(:Deposit, json[:deposits], method, @client) end end end
Version data entries
6 entries across 6 versions & 1 rubygems