class Cryptopay::Client

Attributes

accounts[R]
callbacks[R]
channels[R]
coin_withdrawals[R]
customers[R]
exchange_transfers[R]
invoices[R]
rates[R]
risks[R]
transactions[R]

Public Class Methods

new(&block) click to toggle source
# File lib/cryptopay/client.rb, line 16
def initialize(&block)
  config = Config.new(&block)
  connection = Connection.new(config)

  setup_apis(connection)

  @callbacks = Callbacks.new(config.callback_secret)
end

Private Instance Methods

setup_apis(connection) click to toggle source
# File lib/cryptopay/client.rb, line 27
def setup_apis(connection)
  @invoices = Invoices.new(connection)
  @rates = Rates.new(connection)
  @coin_withdrawals = CoinWithdrawals.new(connection)
  @channels = Channels.new(connection)
  @accounts = Accounts.new(connection)
  @transactions = Transactions.new(connection)
  @exchange_transfers = ExchangeTransfers.new(connection)
  @customers = Customers.new(connection)
  @risks = Risks.new(connection)
end