Class: RMarket::Beliefs::News

Inherits:
Object
  • Object
show all
Defined in:
lib/rmarket/beliefs/news.rb

Overview

Piece of news patterned after Epstein-Schneider 2008

Instance Attribute Summary collapse

Instance Method Summary collapse

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_dividendObject (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

#signalObject (readonly)

Returns the value of attribute signal.



5
6
7
# File 'lib/rmarket/beliefs/news.rb', line 5

def signal
  @signal
end