Class: Fundsrb::Client
- Inherits:
-
Object
- Object
- Fundsrb::Client
- Defined in:
- lib/fundsrb/client.rb
Constant Summary collapse
- API_ENDPOINT =
"https://www.fundsexplorer.com.br/funds".freeze
Instance Method Summary collapse
Instance Method Details
#query(ticket) ⇒ Object
5 6 7 |
# File 'lib/fundsrb/client.rb', line 5 def query(ticket) parser(Nokogiri::HTML(open("#{API_ENDPOINT}/#{ticket}"), nil, Encoding::UTF_8.to_s)) end |