Class: I2X::Config

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

Class Method Summary collapse

Class Method Details

.access_tokenObject



37
38
39
# File 'lib/i2x.rb', line 37

def self.access_token
	@@access_token
end

.hostObject



33
34
35
# File 'lib/i2x.rb', line 33

def self.host
	@@host
end

.logObject



29
30
31
# File 'lib/i2x.rb', line 29

def self.log
	@@log
end

.set_access_token(api_key) ⇒ Object



25
26
27
# File 'lib/i2x.rb', line 25

def self.set_access_token api_key
	@@access_token = api_key
end

.set_host(host) ⇒ Object



20
21
22
23
# File 'lib/i2x.rb', line 20

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

.set_log(log) ⇒ Object



16
17
18
# File 'lib/i2x.rb', line 16

def self.set_log log
	@@log = log
end