Class: Reschedule::Reschedulers::Base
- Inherits:
-
Object
- Object
- Reschedule::Reschedulers::Base
- Defined in:
- lib/reschedule/reschedulers/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
- #run ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/reschedule/reschedulers/base.rb', line 8 def initialize(={}) @options = || {} @options.reverse_merge!(self.class.defaults) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/reschedule/reschedulers/base.rb', line 4 def @options end |
Instance Method Details
#run ⇒ Object
13 14 15 16 |
# File 'lib/reschedule/reschedulers/base.rb', line 13 def run Reschedule.logger.debug "Starting #{self.class.name}" Reschedule.logger.debug "Dry run mode is on" if Reschedule.configuration.dry_run end |