Class: Ifqar::FundQuote
- Inherits:
-
Object
- Object
- Ifqar::FundQuote
- Defined in:
- lib/ifqar/fund_quote.rb
Overview
Fund Quote is an Investment Fund Quote for a given date, with amount of shares, shave_value and net asset value
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#fund ⇒ Object
Returns the value of attribute fund.
-
#net_asset_value ⇒ Object
Returns the value of attribute net_asset_value.
-
#share_value ⇒ Object
Returns the value of attribute share_value.
-
#shares ⇒ Object
Returns the value of attribute shares.
Instance Method Summary collapse
-
#initialize(fund, date, shares, share_value, net_asset_value) ⇒ FundQuote
constructor
A new instance of FundQuote.
Constructor Details
#initialize(fund, date, shares, share_value, net_asset_value) ⇒ FundQuote
7 8 9 10 11 12 13 |
# File 'lib/ifqar/fund_quote.rb', line 7 def initialize(fund, date, shares, share_value, net_asset_value) @fund = fund @date = date @shares = shares @share_value = share_value @net_asset_value = net_asset_value end |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
5 6 7 |
# File 'lib/ifqar/fund_quote.rb', line 5 def date @date end |
#fund ⇒ Object
Returns the value of attribute fund.
5 6 7 |
# File 'lib/ifqar/fund_quote.rb', line 5 def fund @fund end |
#net_asset_value ⇒ Object
Returns the value of attribute net_asset_value.
5 6 7 |
# File 'lib/ifqar/fund_quote.rb', line 5 def net_asset_value @net_asset_value end |
#share_value ⇒ Object
Returns the value of attribute share_value.
5 6 7 |
# File 'lib/ifqar/fund_quote.rb', line 5 def share_value @share_value end |
#shares ⇒ Object
Returns the value of attribute shares.
5 6 7 |
# File 'lib/ifqar/fund_quote.rb', line 5 def shares @shares end |