Class: NOTAM::B

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

Overview

The B item defines when the NOTAM goes into effect.

Constant Summary collapse

RE =
%r(
  \A
  B\)\s?
  (?<effective_at>#{TIME_RE})
  \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

#effective_atTime

Returns:

  • (Time)


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

def effective_at
  time(captures['effective_at'])
end

#mergeObject

See Also:



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

def merge
  super(:effective_at)
end