class Puertos::Parser
Constants
- CSS_ROWS_SELECTOR
@private
- DATA_URL
@private
Public Instance Methods
run()
click to toggle source
uses the row parser to parse line by line the forecast table
@return [Array] Array of ForecastData
with all the relevant information
# File lib/parser.rb, line 15 def run rows = Nokogiri::HTML(open(DATA_URL)).css CSS_ROWS_SELECTOR rows.drop(2).map do |row| Puertos::RowParser.new(row).run end end