Module: Round

Defined in:
lib/round.rb,
lib/round/base.rb,
lib/round/user.rb,
lib/round/client.rb,
lib/round/device.rb,
lib/round/wallet.rb,
lib/round/account.rb,
lib/round/address.rb,
lib/round/helpers.rb,
lib/round/version.rb,
lib/round/collection.rb,
lib/round/application.rb,
lib/round/transaction.rb

Overview

Establish the namespace.

Defined Under Namespace

Modules: Helpers Classes: Account, AccountCollection, Address, AddressCollection, Application, ApplicationCollection, Base, Client, Collection, Device, DeviceCollection, Transaction, TransactionCollection, User, UserCollection, Wallet, WalletCollection

Constant Summary collapse

MAINNET_URL =
'https://api.gem.co'
SANDBOX_URL =
'https://api-sandbox.gem.co'
VERSION =
"0.8.3"
API_TOKEN =
'api_token'
TOTP_SECRET =
'totp_secret'
SUBSCRIPTION_TOKEN =
'subscription_token'

Class Method Summary collapse

Class Method Details

.client(url = MAINNET_URL) ⇒ Object



10
11
12
13
# File 'lib/round/client.rb', line 10

def self.client(url = MAINNET_URL)
  @patchboard ||= ::Patchboard.discover(url) { Client::Context.new }
  Client.new(@patchboard.spawn)
end