lib/i2x.rb in i2x-0.0.4 vs lib/i2x.rb in i2x-0.0.5

- old
+ new

@@ -1,18 +1,32 @@ -current_folder = File.expand_path('../', __FILE__) -Dir["#{current_folder}/i2x/*.rb"].each {|f| require f} +require 'i2x/cashier' +require 'i2x/helper' +require 'i2x/detector' +require 'i2x/csvdetector' +require 'i2x/jsondetector' +require 'i2x/sqldetector' +require 'i2x/xmldetector' +require 'i2x/agent' +require 'i2x/version' +require 'i2x/client' module I2X - class Config - attr_accessor :access_token - attr_accessor :host + class Config - def self.set_host host - host << '/' unless host.ends_with?('/') - @@host = host - 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 - end + def self.set_access_token api_key + @@access_token = api_key + end + + def self.host + @@host + end + + def self.access_token + @@access_token + end + end end