class AIPP::LF::ENR43
Designated Points
Public Instance Methods
parse()
click to toggle source
# File lib/aipp/regions/LF/ENR-4.3.rb 9 def parse 10 prepare(html: read).css('tbody').each do |tbody| 11 tbody.css('tr').to_enum.with_index(1).each do |tr, index| 12 tds = tr.css('td') 13 add AIXM.designated_point( 14 source: source(position: tr.line), 15 type: :icao, 16 id: tds[0].text.strip, 17 xy: xy_from(tds[1].text) 18 ) 19 rescue => error 20 warn("error parsing designated point at ##{index}: #{error.message}", pry: error) 21 end 22 end 23 end