Class: Cryptopay::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/cryptopay/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Client

Returns a new instance of Client.



18
19
20
21
22
23
24
25
# File 'lib/cryptopay/client.rb', line 18

def initialize(&block)
  config = Config.new(&block)
  connection = Connection.new(config)

  setup_apis(connection)

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

Instance Attribute Details

#accountsObject (readonly)

Returns the value of attribute accounts.



5
6
7
# File 'lib/cryptopay/client.rb', line 5

def accounts
  @accounts
end

#callbacksObject (readonly)

Returns the value of attribute callbacks.



5
6
7
# File 'lib/cryptopay/client.rb', line 5

def callbacks
  @callbacks
end

#channelsObject (readonly)

Returns the value of attribute channels.



5
6
7
# File 'lib/cryptopay/client.rb', line 5

def channels
  @channels
end

#coin_withdrawalsObject (readonly)

Returns the value of attribute coin_withdrawals.



5
6
7
# File 'lib/cryptopay/client.rb', line 5

def coin_withdrawals
  @coin_withdrawals
end

#coinsObject (readonly)

Returns the value of attribute coins.



5
6
7
# File 'lib/cryptopay/client.rb', line 5

def coins
  @coins
end

#customersObject (readonly)

Returns the value of attribute customers.



5
6
7
# File 'lib/cryptopay/client.rb', line 5

def customers
  @customers
end

#exchange_transfersObject (readonly)

Returns the value of attribute exchange_transfers.



5
6
7
# File 'lib/cryptopay/client.rb', line 5

def exchange_transfers
  @exchange_transfers
end

#invoicesObject (readonly)

Returns the value of attribute invoices.



5
6
7
# File 'lib/cryptopay/client.rb', line 5

def invoices
  @invoices
end

#ratesObject (readonly)

Returns the value of attribute rates.



5
6
7
# File 'lib/cryptopay/client.rb', line 5

def rates
  @rates
end

#risksObject (readonly)

Returns the value of attribute risks.



5
6
7
# File 'lib/cryptopay/client.rb', line 5

def risks
  @risks
end

#subscriptionsObject (readonly)

Returns the value of attribute subscriptions.



5
6
7
# File 'lib/cryptopay/client.rb', line 5

def subscriptions
  @subscriptions
end

#transactionsObject (readonly)

Returns the value of attribute transactions.



5
6
7
# File 'lib/cryptopay/client.rb', line 5

def transactions
  @transactions
end