lib/aixm/component/layer.rb in aixm-1.0.0 vs lib/aixm/component/layer.rb in aixm-1.1.0
- old
+ new
@@ -1,9 +1,9 @@
using AIXM::Refinements
module AIXM
- module Component
+ class Component
# Each airspace has one or more layers with optional airspace class and
# mandatory vertical limit.
#
# ===Cheat Sheet in Pseudo Code:
@@ -14,14 +14,14 @@
# )
# layer.activity = String or nil
# layer.timetable = AIXM.timetable or nil
# layer.selective = true or false (default)
# layer.remarks = String or nil
- # airspace.add_service(AIXM.service)
+ # layer.add_service(AIXM.service)
#
# @see https://gitlab.com/openflightmaps/ofmx/wikis/Airspace
- class Layer
+ class Layer < Component
include AIXM::Association
CLASSES = (:A..:G).freeze
ACTIVITIES = {
@@ -88,15 +88,17 @@
OTHER: :other
}.freeze
# @!method vertical_limit
# @return [AIXM::Component::VerticalLimit] vertical limit of this layer
+ #
# @!method vertical_limit=(vertical_limit)
# @param vertical_limit [AIXM::Component::VerticalLimit]
has_one :vertical_limit
# @!method services
# @return [Array<AIXM::Component::Service>] services
+ #
# @!method add_service(service)
# @param service [AIXM::Component::Service]
has_many :services
# @!method airspace