Sha256: 4ccfaea73e28fcbb3568735fc62adc75d5db8ddbdae7dd296c0278dd99642360

Contents?: true

Size: 326 Bytes

Versions: 8

Compression:

Stored size: 326 Bytes

Contents

# Database event model
class ClockworkDatabaseEvent < Sequel::Model
  many_to_one :frequency_period

  # Used by clockwork to schedule how frequently this event should be run
  # Should be the intended number of seconds between executions
  def frequency
    frequency_quantity.send(frequency_period.name.pluralize)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
clockwork_database_events-0.2.6 lib/clockwork_database_events/models/clockwork_database_event.rb
clockwork_database_events-0.2.5 lib/clockwork_database_events/models/clockwork_database_event.rb
clockwork_database_events-0.2.4 lib/clockwork_database_events/models/clockwork_database_event.rb
clockwork_database_events-0.2.3 lib/clockwork_database_events/models/clockwork_database_event.rb
clockwork_database_events-0.2.1 lib/clockwork_database_events/models/clockwork_database_event.rb
clockwork_database_events-0.2.0 lib/clockwork_database_events/models/clockwork_database_event.rb
clockwork_database_events-0.1.2 lib/clockwork_database_events/models/clockwork_database_event.rb
clockwork_database_events-0.1.1 lib/clockwork_database_events/models/clockwork_database_event.rb