Module: Vertpig

Defined in:
lib/vertpig.rb,
lib/vertpig/order.rb,
lib/vertpig/quote.rb,
lib/vertpig/client.rb,
lib/vertpig/market.rb,
lib/vertpig/wallet.rb,
lib/vertpig/deposit.rb,
lib/vertpig/helpers.rb,
lib/vertpig/summary.rb,
lib/vertpig/version.rb,
lib/vertpig/currency.rb,
lib/vertpig/withdrawal.rb,
lib/vertpig/configuration.rb

Defined Under Namespace

Modules: Helpers Classes: Client, Configuration, Currency, Deposit, Market, Order, Quote, Summary, Wallet, Withdrawal

Constant Summary collapse

VERSION =
"0.0.11"

Class Method Summary collapse

Class Method Details

.clientObject



16
17
18
# File 'lib/vertpig.rb', line 16

def self.client
  @client ||= Client.new(configuration.auth)
end

.config {|configuration| ... } ⇒ Object

Yields:



20
21
22
23
# File 'lib/vertpig.rb', line 20

def self.config
  yield configuration
  @client = Client.new(configuration.auth)
end

.configurationObject



25
26
27
# File 'lib/vertpig.rb', line 25

def self.configuration
  Configuration.instance
end

.rootObject



29
30
31
# File 'lib/vertpig.rb', line 29

def self.root
  File.expand_path('../..', __FILE__)
end