Class: HireFire::Configuration
- Inherits:
-
Object
- Object
- HireFire::Configuration
- Defined in:
- lib/hirefire/configuration.rb
Defined Under Namespace
Classes: LogQueueMetricsUnsupportedError
Instance Attribute Summary collapse
- #log_queue_metrics ⇒ Object
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#web ⇒ Object
readonly
Returns the value of attribute web.
-
#workers ⇒ Object
readonly
Returns the value of attribute workers.
Instance Method Summary collapse
- #dyno(name, &block) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 |
# File 'lib/hirefire/configuration.rb', line 13 def initialize @web = nil @workers = [] @logger = Logger.new($stdout) end |
Instance Attribute Details
#log_queue_metrics ⇒ Object
27 28 29 |
# File 'lib/hirefire/configuration.rb', line 27 def log_queue_metrics @log_queue_metrics ||= false end |
#logger ⇒ Object
Returns the value of attribute logger.
11 12 13 |
# File 'lib/hirefire/configuration.rb', line 11 def logger @logger end |
#web ⇒ Object (readonly)
Returns the value of attribute web.
9 10 11 |
# File 'lib/hirefire/configuration.rb', line 9 def web @web end |
#workers ⇒ Object (readonly)
Returns the value of attribute workers.
9 10 11 |
# File 'lib/hirefire/configuration.rb', line 9 def workers @workers end |