Class: Ifqar::FundQuote

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#dateObject

Returns the value of attribute date.



5
6
7
# File 'lib/ifqar/fund_quote.rb', line 5

def date
  @date
end

#fundObject

Returns the value of attribute fund.



5
6
7
# File 'lib/ifqar/fund_quote.rb', line 5

def fund
  @fund
end

#net_asset_valueObject

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_valueObject

Returns the value of attribute share_value.



5
6
7
# File 'lib/ifqar/fund_quote.rb', line 5

def share_value
  @share_value
end

#sharesObject

Returns the value of attribute shares.



5
6
7
# File 'lib/ifqar/fund_quote.rb', line 5

def shares
  @shares
end