Class: SuckerPunch::Backgroundable::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/sucker_punch/backgroundable/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#enabledObject

Returns the value of attribute enabled.



14
15
16
# File 'lib/sucker_punch/backgroundable/config.rb', line 14

def enabled
  @enabled
end

#reloadObject

Returns the value of attribute reload.



16
17
18
# File 'lib/sucker_punch/backgroundable/config.rb', line 16

def reload
  @reload
end

#workersObject

Returns the value of attribute workers.



15
16
17
# File 'lib/sucker_punch/backgroundable/config.rb', line 15

def workers
  @workers
end