class Navfund::CTBCBank
Constants
- Funds
- MAIN_URL
List of funds
Public Class Methods
new(main_url=nil)
click to toggle source
# File lib/navfund/providers/ctbc_bank.rb, line 11 def initialize(main_url=nil) @url = main_url ||= MAIN_URL @funds = Funds scrape end
Public Instance Methods
value(fund, fund_type=nil)
click to toggle source
Fetch the current value
# File lib/navfund/providers/ctbc_bank.rb, line 18 def value(fund, fund_type=nil) uitf_com_ph_parser(fund) end
value_at()
click to toggle source
# File lib/navfund/providers/ctbc_bank.rb, line 22 def value_at uitf_com_ph_date_parser end