module Excoin
Constants
- VERSION
Public Class Methods
account()
click to toggle source
# File lib/excoin.rb, line 26 def self.account self.api if @api.nil? @account ||= Account.new end
api(api_key = nil, api_secret = nil, replay_strategy = nil, strategy_parameter = nil)
click to toggle source
# File lib/excoin.rb, line 41 def self.api(api_key = nil, api_secret = nil, replay_strategy = nil, strategy_parameter = nil) @api ||= API.new(api_key, api_secret, replay_strategy, strategy_parameter) end
exchange(exchange_name)
click to toggle source
# File lib/excoin.rb, line 31 def self.exchange(exchange_name) self.api if @api.nil? @exchange ||= self.market.exchange(exchange_name) end
market()
click to toggle source
# File lib/excoin.rb, line 36 def self.market self.api if @api.nil? @market ||= Market.new end