Class: Navfund::LandBank
- Defined in:
- lib/navfund/providers/land_bank.rb
Constant Summary collapse
- MAIN_URL =
List of funds
"http://www.uitf.com.ph/daily_navpu.php?bank_id=9"
- Funds =
[ {:name => "Money Market Fund", :currency => "PHP", :ticker => ""}, {:name => "GS-FI Fund", :currency => "PHP", :ticker => "LBGSFIX:PM"}, {:name => "Growth Fund", :currency => "PHP", :ticker => "LBGRWTH:PM"}, {:name => "Global $ Fund", :currency => "USD", :ticker => "LBGLBDL:PM"} ]
Instance Attribute Summary
Attributes inherited from Provider
Instance Method Summary collapse
-
#initialize(main_url = nil) ⇒ LandBank
constructor
A new instance of LandBank.
-
#value(fund, fund_type = nil) ⇒ Object
Fetch the current value.
- #value_at ⇒ Object
Methods inherited from Provider
#fund_names, #fund_values, #scrape, strip_value, #uitf_com_ph_date_parser, #uitf_com_ph_parser, #valid_fund?
Constructor Details
Instance Method Details
#value(fund, fund_type = nil) ⇒ Object
Fetch the current value
21 22 23 |
# File 'lib/navfund/providers/land_bank.rb', line 21 def value(fund, fund_type=nil) uitf_com_ph_parser(fund) end |
#value_at ⇒ Object
25 26 27 |
# File 'lib/navfund/providers/land_bank.rb', line 25 def value_at uitf_com_ph_date_parser end |