lib/i2x.rb in i2x-0.0.5 vs lib/i2x.rb in i2x-0.0.6
- old
+ new
@@ -1,5 +1,6 @@
+require 'logger'
require 'i2x/cashier'
require 'i2x/helper'
require 'i2x/detector'
require 'i2x/csvdetector'
require 'i2x/jsondetector'
@@ -10,16 +11,24 @@
require 'i2x/client'
module I2X
class Config
+ def self.set_log log
+ @@log = log
+ end
+
def self.set_host host
host << '/' unless host.end_with?('/')
@@host = host
end
def self.set_access_token api_key
@@access_token = api_key
+ end
+
+ def self.log
+ @@log
end
def self.host
@@host
end