Sha256: cd1e275cdc62c76444f1c54594ce838040d8303380e9094bb8e9c25c8afa3196

Contents?: true

Size: 303 Bytes

Versions: 1

Compression:

Stored size: 303 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
clockwork_database_events-0.1.0 lib/clockwork_database_events/models/clockwork_database_event.rb