module HuobiApi

Constants

VERSION

Public Class Methods

account_id() click to toggle source
# File lib/huobi_api.rb, line 29
def self.account_id
  @account_id
end
account_id=(account_id) click to toggle source
# File lib/huobi_api.rb, line 25
def self.account_id=(account_id)
  @account_id = account_id
end
client() click to toggle source
# File lib/huobi_api.rb, line 42
def self.client
  @client ||= Client.new
end
configure() { |self| ... } click to toggle source

configure like HuobiApi.configure do |config|

config.key = 'my key'
// also secret and account_id

end

# File lib/huobi_api.rb, line 38
def self.configure
  yield self
end
key() click to toggle source
# File lib/huobi_api.rb, line 13
def self.key
  @key
end
key=(key) click to toggle source
# File lib/huobi_api.rb, line 9
def self.key=(key)
  @key = key
end
method_missing(method, *args, &block) click to toggle source
Calls superclass method
# File lib/huobi_api.rb, line 46
def self.method_missing(method, *args, &block)
  return super unless client.respond_to?(method)
  client.send method, *args, &block
end
respond_to?(method, include_private = false) click to toggle source
Calls superclass method
# File lib/huobi_api.rb, line 51
def self.respond_to?(method, include_private = false)
  client.respond_to?(method, include_private) || super(method, include_private)
end
secret() click to toggle source
# File lib/huobi_api.rb, line 21
def self.secret
  @secret
end
secret=(secret) click to toggle source
# File lib/huobi_api.rb, line 17
def self.secret=(secret)
  @secret = secret
end