lib/i2x.rb in i2x-0.0.3 vs lib/i2x.rb in i2x-0.0.4
- old
+ new
@@ -1,6 +1,18 @@
-require_relative "./i2x/version"
-require_relative "./i2x/client"
+current_folder = File.expand_path('../', __FILE__)
+Dir["#{current_folder}/i2x/*.rb"].each {|f| require f}
module I2X
-
+ class Config
+ attr_accessor :access_token
+ attr_accessor :host
+
+ def self.set_host host
+ host << '/' unless host.ends_with?('/')
+ @@host = host
+ end
+
+ def self.set_access_token api_key
+ @@access_token = api_key
+ end
+ end
end