Class: Rails::Index::Now::Configuration
- Inherits:
-
Object
- Object
- Rails::Index::Now::Configuration
- Defined in:
- lib/rails/index/now/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#disabled ⇒ Object
Returns the value of attribute disabled.
-
#host ⇒ Object
Returns the value of attribute host.
-
#key_file_name ⇒ Object
Returns the value of attribute key_file_name.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
- #disabled? ⇒ Boolean
- #engine_valid? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #valid? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 |
# File 'lib/rails/index/now/configuration.rb', line 9 def initialize @api_key = nil @host = nil @disabled = false @logger = default_logger @key_file_name = nil end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
7 8 9 |
# File 'lib/rails/index/now/configuration.rb', line 7 def api_key @api_key end |
#disabled ⇒ Object
Returns the value of attribute disabled.
7 8 9 |
# File 'lib/rails/index/now/configuration.rb', line 7 def disabled @disabled end |
#host ⇒ Object
Returns the value of attribute host.
7 8 9 |
# File 'lib/rails/index/now/configuration.rb', line 7 def host @host end |
#key_file_name ⇒ Object
Returns the value of attribute key_file_name.
7 8 9 |
# File 'lib/rails/index/now/configuration.rb', line 7 def key_file_name @key_file_name end |
#logger ⇒ Object
Returns the value of attribute logger.
7 8 9 |
# File 'lib/rails/index/now/configuration.rb', line 7 def logger @logger end |
Instance Method Details
#disabled? ⇒ Boolean
25 26 27 |
# File 'lib/rails/index/now/configuration.rb', line 25 def disabled? @disabled end |
#engine_valid? ⇒ Boolean
33 34 35 |
# File 'lib/rails/index/now/configuration.rb', line 33 def engine_valid? valid? && !key_file_name.nil? && !key_file_name.empty? end |
#valid? ⇒ Boolean
29 30 31 |
# File 'lib/rails/index/now/configuration.rb', line 29 def valid? !api_key.nil? && !api_key.empty? end |