lib/i2x.rb in i2x-0.0.6 vs lib/i2x.rb in i2x-0.0.7
- old
+ new
@@ -11,10 +11,14 @@
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
@@ -22,20 +26,8 @@
@@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