Class: ClockworkDatabaseEvent

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/clockwork_database_events/models/clockwork_database_event.rb

Overview

Database event model

Instance Method Summary collapse

Instance Method Details

#frequencyObject

Used by clockwork to schedule how frequently this event should be run Should be the intended number of seconds between executions



7
8
9
# File 'lib/clockwork_database_events/models/clockwork_database_event.rb', line 7

def frequency
  frequency_quantity.send(frequency_period.name.pluralize)
end