Class: AIXM::Feature Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/aixm/feature.rb,
lib/aixm/feature/unit.rb,
lib/aixm/feature/address.rb,
lib/aixm/feature/airport.rb,
lib/aixm/feature/service.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.

Defined Under Namespace

Classes: Address, Airport, Airspace, NavigationalAid, Obstacle, ObstacleGroup, Organisation, Service, Unit

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source: nil) ⇒ Feature

Returns a new instance of Feature


10
11
12
# File 'lib/aixm/feature.rb', line 10

def initialize(source: nil)
  self.source = source
end

Instance Attribute Details

#sourceString

Returns reference to source of the feature data

Returns:

  • (String)

    reference to source of the feature data


8
9
10
# File 'lib/aixm/feature.rb', line 8

def source
  @source
end

Instance Method Details

#==(other) ⇒ Boolean

Returns:

  • (Boolean)

21
22
23
# File 'lib/aixm/feature.rb', line 21

def ==(other)
  self.class === other && self.to_uid == other.to_uid
end