lib/i2x.rb in i2x-0.0.7 vs lib/i2x.rb in i2x-0.1
- old
+ new
@@ -11,14 +11,12 @@
require 'i2x/client'
module I2X
class Config
- class << self
- attr_accessor :log, :host, :access_token
- end
+
def self.set_log log
@@log = log
end
def self.set_host host
@@ -26,8 +24,20 @@
@@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
+
+ def self.access_token
+ @@access_token
end
end
end