Class: I2X::Config
- Inherits:
-
Object
- Object
- I2X::Config
- Defined in:
- lib/i2x.rb
Class Attribute Summary collapse
-
.access_token ⇒ Object
Returns the value of attribute access_token.
-
.host ⇒ Object
Returns the value of attribute host.
-
.log ⇒ Object
Returns the value of attribute log.
Class Method Summary collapse
Class Attribute Details
.access_token ⇒ Object
Returns the value of attribute access_token.
17 18 19 |
# File 'lib/i2x.rb', line 17 def access_token @access_token end |
.host ⇒ Object
Returns the value of attribute host.
17 18 19 |
# File 'lib/i2x.rb', line 17 def host @host end |
.log ⇒ Object
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 |