Class: RMarket::Beliefs::News
- Inherits:
-
Object
- Object
- RMarket::Beliefs::News
- Defined in:
- lib/rmarket/beliefs/news.rb
Overview
Piece of news patterned after Epstein-Schneider 2008
Instance Attribute Summary collapse
-
#previous_dividend ⇒ Object
readonly
Returns the value of attribute previous_dividend.
-
#signal ⇒ Object
readonly
Returns the value of attribute signal.
Instance Method Summary collapse
-
#initialize(signal, previous_dividend = nil) ⇒ News
constructor
A new instance of News.
Constructor Details
#initialize(signal, previous_dividend = nil) ⇒ News
Returns a new instance of News.
7 8 9 10 |
# File 'lib/rmarket/beliefs/news.rb', line 7 def initialize(signal, previous_dividend=nil) @signal = signal @previous_dividend = previous_dividend end |
Instance Attribute Details
#previous_dividend ⇒ Object (readonly)
Returns the value of attribute previous_dividend.
5 6 7 |
# File 'lib/rmarket/beliefs/news.rb', line 5 def previous_dividend @previous_dividend end |
#signal ⇒ Object (readonly)
Returns the value of attribute signal.
5 6 7 |
# File 'lib/rmarket/beliefs/news.rb', line 5 def signal @signal end |