Class: AIXM::Feature Abstract
- Defined in:
- lib/aixm/feature.rb,
lib/aixm/feature/unit.rb,
lib/aixm/feature/airport.rb,
lib/aixm/feature/generic.rb,
lib/aixm/feature/airspace.rb,
lib/aixm/feature/obstacle.rb,
lib/aixm/feature/organisation.rb,
lib/aixm/feature/obstacle_group.rb,
lib/aixm/feature/navigational_aid.rb,
lib/aixm/feature/navigational_aid/dme.rb,
lib/aixm/feature/navigational_aid/ndb.rb,
lib/aixm/feature/navigational_aid/vor.rb,
lib/aixm/feature/navigational_aid/tacan.rb,
lib/aixm/feature/navigational_aid/marker.rb,
lib/aixm/feature/navigational_aid/designated_point.rb
Overview
This class is abstract.
Direct Known Subclasses
Airport, Airspace, Generic, NavigationalAid, Obstacle, ObstacleGroup, Organisation, Unit
Defined Under Namespace
Classes: Airport, Airspace, Generic, NavigationalAid, Obstacle, ObstacleGroup, Organisation, Unit
Constant Summary collapse
- REGION_RE =
/\A[A-Z]{2}\z/.freeze
Instance Attribute Summary collapse
-
#comment ⇒ Object
Freely usable XML comment e.g.
-
#region ⇒ Object
OFMX region all features in this document belong to.
-
#source ⇒ Object
Reference to source of the feature data.
Attributes inherited from Component
Instance Method Summary collapse
- #==(other) ⇒ Object
- #hash ⇒ Object
-
#initialize(source: nil, region: nil) ⇒ Feature
constructor
A new instance of Feature.
Methods included from Concerns::HashEquality
Methods included from Concerns::XMLBuilder
#build_fragment, #to_uid, #to_xml
Methods included from Concerns::Memoize
Constructor Details
Instance Attribute Details
#comment ⇒ String #comment=(value) ⇒ Object
Freely usable XML comment e.g. to include raw source data
18 19 20 |
# File 'lib/aixm/feature.rb', line 18 def comment @comment end |
#region ⇒ String #region=(value) ⇒ Object
OFMX region all features in this document belong to.
34 35 36 |
# File 'lib/aixm/feature.rb', line 34 def region @region end |
#source ⇒ String #source=(value) ⇒ Object
Reference to source of the feature data.
26 27 28 |
# File 'lib/aixm/feature.rb', line 26 def source @source end |