Class: Ish::StockWatch
- Inherits:
-
Object
- Object
- Ish::StockWatch
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- lib/ish/stock_watch.rb
Overview
This is not used… not worth the time to change. Use IshModels::StockWatch instead vp 20171026
Constant Summary collapse
- NOTIFICATION_TYPES =
[ :NONE, :EMAIL, :SMS ]
- NOTIFICATION_NONE =
:NONE
- NOTIFICATION_EMAIL =
:EMAIL
- NOTIFICATION_SMS =
:SMS
- ACTIONS =
NOTIFICATION_TYPES
- DIRECTIONS =
[ :ABOVE, :BELOW ]
- DIRECTION_ABOVE =
:ABOVE
- DIRECTION_BELOW =
:BELOW
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
29 30 31 |
# File 'lib/ish/stock_watch.rb', line 29 def to_s "#{self.ticker} #{self.direction} #{self.price}" end |