Class: NOTAM::A
Overview
The A item defines the locations (ICAO codes) affected by this NOTAM.
Constant Summary collapse
- RE =
%r( \A A\)\s? (?<locations>(?:#{ICAO_RE}\s?)+) \z )x.freeze
Constants inherited from Item
Item::ICAO_RE, Item::ID_RE, Item::TIME_RE
Instance Attribute Summary
Attributes inherited from Item
Instance Method Summary collapse
Methods inherited from Item
#fail!, #initialize, #inspect, #parse, #type, type
Constructor Details
This class inherits a constructor from NOTAM::Item
Instance Method Details
#locations ⇒ Array<String>
16 17 18 |
# File 'lib/notam/item/a.rb', line 16 def locations captures['locations'].split(/\s/) end |
#merge ⇒ Object
21 22 23 |
# File 'lib/notam/item/a.rb', line 21 def merge super(:locations) end |