Class: Ish::StockOption
- Inherits:
-
Object
- Object
- Ish::StockOption
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- lib/ish/stock_option.rb
Overview
Stock Option. Owned by a person. This is a position that is held (or historical data). vp 20171026
Constant Summary collapse
- DIRECTIONS =
[ :CALL, :PUT ]
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
25 26 27 |
# File 'lib/ish/stock_option.rb', line 25 def to_s "#{self.ticker} #{self.expires_on.to_time.strftime('%b %d %Y')} #{self.strike} (x #{self.quantity})" end |