Class: I2X::Config

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.access_tokenObject

Returns the value of attribute access_token.



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

def access_token
  @access_token
end

.hostObject

Returns the value of attribute host.



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

def host
  @host
end

.logObject

Returns the value of attribute log.



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

def log
  @log
end

Class Method Details

.set_access_token(api_key) ⇒ Object



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

def self.set_access_token api_key
	@@access_token = api_key
end

.set_host(host) ⇒ Object



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

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

.set_log(log) ⇒ Object



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

def self.set_log log
	@@log = log
end