Sha256: 4bd18a4ee59b805e29f85071b584da35a53eb084c22b47f834250bd557d5d7cd

Contents?: true

Size: 441 Bytes

Versions: 3

Compression:

Stored size: 441 Bytes

Contents

class Iro::Alert < Iro::ApplicationRecord
  self.table_name = 'iro_alerts'

  SLEEP_TIME_SECONDS = Rails.env.production? ? 60 : 15

  DIRECTION_ABOVE = 'ABOVE'
  DIRECTION_BELOW = 'BELOW'
  def self.directions_list
    [ nil, DIRECTION_ABOVE, DIRECTION_BELOW ]
  end

  STATUS_ACTIVE   = 'active'
  STATUS_INACTIVE = 'inactive'
  STATUSES        = [ 'active', 'inactive' ]


  def self.active
    where( status: STATUS_ACTIVE )
  end


end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iron_warbler-2.0.7.7 app/models/iro/alert.rb
iron_warbler-2.0.7.6 app/models/iro/alert.rb
iron_warbler-2.0.7.5 app/models/iro/alert.rb