Class: Navfund::RCBCSavingsBank
- Defined in:
- lib/navfund/providers/rcbc_savings_bank.rb
Constant Summary collapse
- MAIN_URL =
List of funds Extra space in fund name!
"http://www.uitf.com.ph/daily_navpu.php?bank_id=28"
- Funds =
[ {:name => "RCBC Savings Bank Peso Money Market UITF", :currency => "PHP", :ticker => ""} ]
Instance Attribute Summary
Attributes inherited from Provider
Instance Method Summary collapse
-
#initialize(main_url = nil) ⇒ RCBCSavingsBank
constructor
A new instance of RCBCSavingsBank.
-
#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
#initialize(main_url = nil) ⇒ RCBCSavingsBank
Returns a new instance of RCBCSavingsBank.
12 13 14 15 16 |
# File 'lib/navfund/providers/rcbc_savings_bank.rb', line 12 def initialize(main_url=nil) @url = main_url ||= MAIN_URL @funds = Funds scrape end |
Instance Method Details
#value(fund, fund_type = nil) ⇒ Object
Fetch the current value
19 20 21 |
# File 'lib/navfund/providers/rcbc_savings_bank.rb', line 19 def value(fund, fund_type=nil) uitf_com_ph_parser(fund) end |
#value_at ⇒ Object
23 24 25 |
# File 'lib/navfund/providers/rcbc_savings_bank.rb', line 23 def value_at uitf_com_ph_date_parser end |