Class: I2X::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/i2x.rb

Class Method Summary collapse

Class Method Details

.access_tokenObject



39
40
41
# File 'lib/i2x.rb', line 39

def self.access_token
	@@access_token
end

.hostObject



35
36
37
# File 'lib/i2x.rb', line 35

def self.host
	@@host
end

.logObject



31
32
33
# File 'lib/i2x.rb', line 31

def self.log
	@@log
end

.set_access_token(api_key) ⇒ Object



27
28
29
# File 'lib/i2x.rb', line 27

def self.set_access_token api_key
	@@access_token = api_key
end

.set_host(host) ⇒ Object



22
23
24
25
# File 'lib/i2x.rb', line 22

def self.set_host host
	host << '/' unless host.end_with?('/')
	@@host = host
end

.set_log(log) ⇒ Object



18
19
20
# File 'lib/i2x.rb', line 18

def self.set_log log
	@@log = log
end