Sha256: c965f2986680c78005dfff64018b9408a849665fb5b7124330cdfa4dfcaaae3c
Contents?: true
Size: 791 Bytes
Versions: 2
Compression:
Stored size: 791 Bytes
Contents
module StellarClient class Client include APIClientBase::Client.module(default_opts: :default_opts) api_action :send_payment api_action :get_toml def withdraw(opts = {}) transfer_host = get_toml.toml["TRANSFER_SERVER"] request = WithdrawRequest.new(opts.merge(host: transfer_host)) raw_response = request.() WithdrawResponse.new(raw_response: raw_response) end def deposit(opts = {}) transfer_host = get_toml.toml["TRANSFER_SERVER"] request = DepositRequest.new(opts.merge(host: transfer_host)) raw_response = request.() DepositResponse.new(raw_response: raw_response) end attribute :bridge_host, String private def default_opts { host: host, bridge_host: bridge_host } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stellar_client-0.6.1 | lib/stellar_client/client.rb |
stellar_client-0.6.0 | lib/stellar_client/client.rb |