class BitX::Connection

connection object to be used in concurrent systems where connections and configurations might differ

Attributes

configuration[RW]
conn[RW]

Public Class Methods

configuration() click to toggle source
# File lib/bitx.rb, line 59
def self.configuration
  @configuration
end
conn() click to toggle source
# File lib/bitx.rb, line 51
def self.conn
  @conn
end
get(url, params=nil) click to toggle source
# File lib/bitx.rb, line 55
def self.get(url, params=nil)
  get(url, params)
end
new(connection=nil) { |configuration| ... } click to toggle source
# File lib/bitx.rb, line 45
def initialize(connection=nil)
  @conn = connection || BitX.conn
  @configuration = BitX.configuration
  yield(@configuration) if block_given?
end