module MrYahooFinance::Builder::Validator
Public Instance Methods
parseable?(html)
click to toggle source
# File lib/mr_yahoo_finance/builder/validator.rb, line 9 def parseable?(html) html and html.css('table.yfnc_tabledata1').any? end
valid?(tr, key_word)
click to toggle source
# File lib/mr_yahoo_finance/builder/validator.rb, line 5 def valid?(tr, key_word) tr.css('td').text.include?(key_word) end