Class: Navfund::UCPB
Constant Summary collapse
- MAIN_URL =
List of funds
"http://www.uitf.com.ph/daily_navpu.php?bank_id=14"- Funds =
[ {:name => "UCPB Cash Management Fund", :currency => "PHP", :ticker => "UCPBCSH:PM"}, {:name => "UCPB Peso Bond Fund", :currency => "PHP", :ticker => "UCPBCSV:PM"}, {:name => "UCPB Balanced Fund", :currency => "PHP", :ticker => "UCPBBAL:PM"}, {:name => "UCPB Equity Fund", :currency => "PHP", :ticker => "UCPBEQT:PM"}, {:name => "UCPB High Dividend Fund", :currency => "PHP", :ticker => "UCPBHDF:PM"}, {:name => "UCPB US$ Money Market Fund", :currency => "USD", :ticker => "UCPBDMM:PM"} ]
Instance Attribute Summary
Attributes inherited from Provider
Instance Method Summary collapse
-
#initialize(main_url = nil) ⇒ UCPB
constructor
A new instance of UCPB.
-
#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
23 24 25 |
# File 'lib/navfund/providers/ucpb.rb', line 23 def value(fund, fund_type=nil) uitf_com_ph_parser(fund) end |
#value_at ⇒ Object
27 28 29 |
# File 'lib/navfund/providers/ucpb.rb', line 27 def value_at uitf_com_ph_date_parser end |