Class: Campfire::Configuration
- Inherits:
-
Object
- Object
- Campfire::Configuration
- Defined in:
- lib/campfire/configuration.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#api_token ⇒ Object
Returns the value of attribute api_token.
-
#config_dir ⇒ Object
Returns the value of attribute config_dir.
-
#datauri ⇒ Object
Returns the value of attribute datauri.
-
#google_api_key ⇒ Object
Returns the value of attribute google_api_key.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#room ⇒ Object
Returns the value of attribute room.
-
#ssl_verify ⇒ Object
Returns the value of attribute ssl_verify.
-
#subdomain ⇒ Object
Returns the value of attribute subdomain.
-
#verbose ⇒ Object
(also: #verbose?)
Returns the value of attribute verbose.
Instance Method Summary collapse
Instance Attribute Details
#api_token ⇒ Object
Returns the value of attribute api_token.
28 29 30 |
# File 'lib/campfire/configuration.rb', line 28 def api_token @api_token end |
#config_dir ⇒ Object
Returns the value of attribute config_dir.
28 29 30 |
# File 'lib/campfire/configuration.rb', line 28 def config_dir @config_dir end |
#datauri ⇒ Object
Returns the value of attribute datauri.
28 29 30 |
# File 'lib/campfire/configuration.rb', line 28 def datauri @datauri end |
#google_api_key ⇒ Object
Returns the value of attribute google_api_key.
28 29 30 |
# File 'lib/campfire/configuration.rb', line 28 def google_api_key @google_api_key end |
#logger ⇒ Object
Returns the value of attribute logger.
28 29 30 |
# File 'lib/campfire/configuration.rb', line 28 def logger @logger end |
#room ⇒ Object
Returns the value of attribute room.
28 29 30 |
# File 'lib/campfire/configuration.rb', line 28 def room @room end |
#ssl_verify ⇒ Object
Returns the value of attribute ssl_verify.
28 29 30 |
# File 'lib/campfire/configuration.rb', line 28 def ssl_verify @ssl_verify end |
#subdomain ⇒ Object
Returns the value of attribute subdomain.
28 29 30 |
# File 'lib/campfire/configuration.rb', line 28 def subdomain @subdomain end |
#verbose ⇒ Object Also known as: verbose?
Returns the value of attribute verbose.
28 29 30 |
# File 'lib/campfire/configuration.rb', line 28 def verbose @verbose end |
Instance Method Details
#reload! ⇒ Object
46 47 |
# File 'lib/campfire/configuration.rb', line 46 def reload! end |
#validate! ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/campfire/configuration.rb', line 38 def validate! api_token or raise ConfigurationError, 'no api token given' subdomain or raise ConfigurationError, 'no subdomain given' room or raise ConfigurationError, 'no room given' datauri or raise ConfigurationError, 'no datauri given' logger or raise ConfigurationError, 'no logger given' end |