Class: AIXM::Feature::NavigationalAid Abstract
- Inherits:
-
AIXM::Feature
- Object
- Component
- AIXM::Feature
- AIXM::Feature::NavigationalAid
- Defined in:
- 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
DME, DesignatedPoint, Marker, NDB, VOR
Defined Under Namespace
Classes: DME, DesignatedPoint, Marker, NDB, TACAN, VOR
Constant Summary
Constants inherited from AIXM::Feature
Instance Attribute Summary collapse
-
#id ⇒ Object
Published identifier.
-
#name ⇒ Object
Name of the navigational aid.
-
#xy ⇒ Object
Geographic position.
-
#z ⇒ Object
Elevation in
:qnh
.
Attributes included from Concerns::Remarks
Attributes included from Concerns::Timetable
Attributes inherited from AIXM::Feature
Attributes inherited from Component
Instance Method Summary collapse
-
#initialize(source: nil, region: nil, organisation:, id:, name: nil, xy:, z: nil) ⇒ NavigationalAid
constructor
A new instance of NavigationalAid.
- #inspect ⇒ String
-
#kind ⇒ String
Fully descriptive combination of #class and #type key.
-
#organisation ⇒ AIXM::Feature::Organisation
Superior organisation.
Methods included from Concerns::Association
Methods inherited from AIXM::Feature
Methods included from Concerns::HashEquality
Methods included from Concerns::XMLBuilder
#build_fragment, #to_uid, #to_xml
Methods included from Concerns::Memoize
Constructor Details
#initialize(source: nil, region: nil, organisation:, id:, name: nil, xy:, z: nil) ⇒ NavigationalAid
Returns a new instance of NavigationalAid.
50 51 52 53 |
# File 'lib/aixm/feature/navigational_aid.rb', line 50 def initialize(source: nil, region: nil, organisation:, id:, name: nil, xy:, z: nil) super(source: source, region: region) self.organisation, self.id, self.name, self.xy, self.z = organisation, id, name, xy, z end |
Instance Attribute Details
#id ⇒ String #id=(value) ⇒ Object
Published identifier
24 25 26 |
# File 'lib/aixm/feature/navigational_aid.rb', line 24 def id @id end |
#name ⇒ String? #name=(value) ⇒ Object
Name of the navigational aid.
32 33 34 |
# File 'lib/aixm/feature/navigational_aid.rb', line 32 def name @name end |
Instance Method Details
#inspect ⇒ String
56 57 58 |
# File 'lib/aixm/feature/navigational_aid.rb', line 56 def inspect %Q(#<#{self.class} id=#{id.inspect} name=#{name.inspect}>) end |
#kind ⇒ String
Fully descriptive combination of #class and #type key.
83 84 85 |
# File 'lib/aixm/feature/navigational_aid.rb', line 83 def kind [self.class.name.split('::').last, type_key].compact.join(':'.freeze) end |
#organisation ⇒ AIXM::Feature::Organisation
Returns superior organisation.
16 |
# File 'lib/aixm/feature/navigational_aid.rb', line 16 belongs_to :organisation, as: :member |