Method: Kaesen::Lakebtc#initialize

Defined in:
lib/kaesen/lakebtc.rb

#initialize(options = {}) {|_self| ... } ⇒ Lakebtc

Returns a new instance of Lakebtc.

Yields:

  • (_self)

Yield Parameters:



14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/kaesen/lakebtc.rb', line 14

def initialize(options = {})
  super()
  @name        = "Lakebtc"
  @api_key     = ENV["LAKEBTC_KEY"]
  @api_secret  = ENV["LAKEBTC_SECRET"]
  @url_public  = "https://www.LakeBTC.com/api_v1"
  @url_private = @url_public

  options.each do |key, value|
    instance_variable_set("@#{key}", value)
  end
  yield(self) if block_given?
end