Module: NationalRail::VirginLiveDepartureBoards::CellParser

Included in:
NationalRail::VirginLiveDepartureBoards, DetailsPageParser
Defined in:
lib/national-rail/virgin_live_departure_boards.rb

Instance Method Summary collapse

Instance Method Details

#cell_text(td) ⇒ Object



10
11
12
13
# File 'lib/national-rail/virgin_live_departure_boards.rb', line 10

def cell_text(td)
  decoder = HTMLEntities.new
  decoder.decode(td.inner_html)
end