Class: SuckerPunch::Backgroundable::Configuration
- Inherits:
-
Object
- Object
- SuckerPunch::Backgroundable::Configuration
- Defined in:
- lib/sucker_punch/backgroundable/config.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#reload ⇒ Object
Returns the value of attribute reload.
-
#workers ⇒ Object
Returns the value of attribute workers.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
18 19 20 21 22 |
# File 'lib/sucker_punch/backgroundable/config.rb', line 18 def initialize @enabled = true @workers = 2 @reload = false end |
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
14 15 16 |
# File 'lib/sucker_punch/backgroundable/config.rb', line 14 def enabled @enabled end |
#reload ⇒ Object
Returns the value of attribute reload.
16 17 18 |
# File 'lib/sucker_punch/backgroundable/config.rb', line 16 def reload @reload end |
#workers ⇒ Object
Returns the value of attribute workers.
15 16 17 |
# File 'lib/sucker_punch/backgroundable/config.rb', line 15 def workers @workers end |