Class: NOTAM::A

Inherits:
Item
  • Object
show all
Defined in:
lib/notam/item/a.rb

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

#captures, #data, #text

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

#locationsArray<String>

Returns:

  • (Array<String>)


16
17
18
# File 'lib/notam/item/a.rb', line 16

def locations
  captures['locations'].split(/\s/)
end

#mergeObject

See Also:



21
22
23
# File 'lib/notam/item/a.rb', line 21

def merge
  super(:locations)
end