Sha256: 3b48ac7b4cbfc327c4e99e360a58f67753a5a7364f5bc12697714573b6094ea5

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
i2x-0.0.4 lib/i2x.rb