Class: Croket::Configuration
- Inherits:
-
Object
- Object
- Croket::Configuration
- Defined in:
- lib/croket/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#environment_blacklist ⇒ Object
Returns the value of attribute environment_blacklist.
-
#host ⇒ Object
Returns the value of attribute host.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#package ⇒ Object
Returns the value of attribute package.
-
#root_path ⇒ Object
Returns the value of attribute root_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 18 19 |
# File 'lib/croket/configuration.rb', line 13 def initialize @host = 'croket.mobi' @logger = ::Rails.logger @root_path = ::Rails.root @environment = ::Rails.env @environment_blacklist = [:test, :development] end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
11 12 13 |
# File 'lib/croket/configuration.rb', line 11 def api_key @api_key end |
#environment ⇒ Object
Returns the value of attribute environment.
11 12 13 |
# File 'lib/croket/configuration.rb', line 11 def environment @environment end |
#environment_blacklist ⇒ Object
Returns the value of attribute environment_blacklist.
11 12 13 |
# File 'lib/croket/configuration.rb', line 11 def environment_blacklist @environment_blacklist end |
#host ⇒ Object
Returns the value of attribute host.
11 12 13 |
# File 'lib/croket/configuration.rb', line 11 def host @host end |
#logger ⇒ Object
Returns the value of attribute logger.
11 12 13 |
# File 'lib/croket/configuration.rb', line 11 def logger @logger end |
#package ⇒ Object
Returns the value of attribute package.
11 12 13 |
# File 'lib/croket/configuration.rb', line 11 def package @package end |
#root_path ⇒ Object
Returns the value of attribute root_path.
11 12 13 |
# File 'lib/croket/configuration.rb', line 11 def root_path @root_path end |