Class: Iro::Alert
- Inherits:
-
Object
- Object
- Iro::Alert
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- app/models/iro/alert.rb
Constant Summary collapse
- SLEEP_TIME_SECONDS =
Rails.env.production? ? 60 : 15
- DIRECTION_ABOVE =
'ABOVE'- DIRECTION_BELOW =
'BELOW'- STATUS_ACTIVE =
'active'- STATUS_INACTIVE =
'inactive'- STATUSES =
[ 'active', 'inactive' ]
Class Method Summary collapse
Class Method Details
.active ⇒ Object
18 19 20 |
# File 'app/models/iro/alert.rb', line 18 def self.active where( status: STATUS_ACTIVE ) end |
.directions_list ⇒ Object
11 12 13 |
# File 'app/models/iro/alert.rb', line 11 def self.directions_list [ nil, DIRECTION_ABOVE, DIRECTION_BELOW ] end |