GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Object
  • Component
  • AIXM::Feature
  • #id ⇒ Object
  • AIXM::Feature::Airport
  • AIXM::Feature::Unit
  • AIXM::Feature::NavigationalAid
  • Array

This view

  • Original page
  • New address

GeezerVison is showing www.rubydoc.info — RubyDoc.info: Class: AIXM::Feature::Organisation – Documentation for aixm (1.6.1) – RubyDoc.info

Libraries » aixm (1.6.1) » Index (O) » AIXM » Feature » Organisation

Class: AIXM::Feature::Organisation

Inherits:
AIXM::Feature
  • Object
  • Component
  • AIXM::Feature
  • AIXM::Feature::Organisation
show all
Includes:
Concerns::Association, Concerns::Remarks
Defined in:
lib/aixm/feature/organisation.rb

Overview

Organisations and authorities such as ATS organisations, aircraft operating agencies, states and so forth.

===Cheat Sheet in Pseudo Code:

organisation = AIXM.organisation(
source: String or nil
region: String or nil
name: String
type: TYPES
)
organisation.id = String or nil
organisation.remarks = String or nil
organisation.comment = Object or nil

See Also:

  • https://gitlab.com/openflightmaps/ofmx/wikis/Organisation#org-organisation

Constant Summary collapse

TYPES =
{
  S: :state,
  GS: :group_of_states,
  O: :national_organisation,
  IO: :international_organisation,
  AOA: :aircraft_operating_agency,
  ATS: :air_traffic_services_provider,
  HA: :handling_authority,
  A: :national_authority,
  OTHER: :other                          # specify in remarks
}.freeze

Constants inherited from AIXM::Feature

REGION_RE

Instance Attribute Summary collapse

  • #id ⇒ Object

    Code of the organisation (e.g. "LF").

  • #name ⇒ Object

    Name of organisation (e.g. "FRANCE").

  • #type ⇒ Object

    Type of organisation.

Attributes included from Concerns::Remarks

#remarks

Attributes inherited from AIXM::Feature

#comment, #region, #source

Attributes inherited from Component

#meta

Instance Method Summary collapse

  • #add_member(member) ⇒ self
  • #initialize(source: nil, region: nil, name:, type:) ⇒ Organisation constructor

    See the cheat sheet for examples on how to create instances of this class.

  • #inspect ⇒ String
  • #members ⇒ Array<AIXM::Feature::Airport, AIXM::Feature::Unit, AIXM::Feature::NavigationalAid>

    Aiports, units or navigational aids.

Methods included from Concerns::Association

included

Methods inherited from AIXM::Feature

#==, #hash

Methods included from Concerns::HashEquality

#eql?, #hash

Methods included from Concerns::XMLBuilder

#build_fragment, #to_uid, #to_xml

Methods included from Concerns::Memoize

included, method

Constructor Details

#initialize(source: nil, region: nil, name:, type:) ⇒ Organisation

See the cheat sheet for examples on how to create instances of this class.


75
76
77
78
# File 'lib/aixm/feature/organisation.rb', line 75

def initialize(source: nil, region: nil, name:, type:)
  super(source: source, region: region)
  self.name, self.type = name, type
end

Instance Attribute Details

#id ⇒ String? #id=(value) ⇒ Object

Code of the organisation (e.g. "LF")

Overloads:

  • #id ⇒ String?

    Returns:

    • (String, nil)
  • #id=(value) ⇒ Object

    Parameters:

    • value (String, nil)

71
72
73
# File 'lib/aixm/feature/organisation.rb', line 71

def id
  @id
end

#name ⇒ String #name=(value) ⇒ Object

Name of organisation (e.g. "FRANCE")

Overloads:

  • #name ⇒ String

    Returns:

    • (String)
  • #name=(value) ⇒ Object

    Parameters:

    • value (String)

55
56
57
# File 'lib/aixm/feature/organisation.rb', line 55

def name
  @name
end

#type ⇒ Symbol #type=(value) ⇒ Object

Type of organisation

Overloads:

  • #type ⇒ Symbol

    Returns any of TYPES.

    Returns:

    • (Symbol) —

      any of TYPES

  • #type=(value) ⇒ Object

    Parameters:

    • value (Symbol) —

      any of TYPES


63
64
65
# File 'lib/aixm/feature/organisation.rb', line 63

def type
  @type
end

Instance Method Details

#add_member(member) ⇒ self

Parameters:

  • member (AIXM::Feature::Airport, AIXM::Feature::Unit, AIXM::Feature::NavigationalAid)

Returns:

  • (self)

47
# File 'lib/aixm/feature/organisation.rb', line 47

has_many :members, accept: [:airport, :unit, 'AIXM::Feature::NavigationalAid']

#inspect ⇒ String

Returns:

  • (String)

81
82
83
# File 'lib/aixm/feature/organisation.rb', line 81

def inspect
  %Q(#<#{self.class} name=#{name.inspect} type=#{type.inspect}>)
end

#members ⇒ Array<AIXM::Feature::Airport, AIXM::Feature::Unit, AIXM::Feature::NavigationalAid>

Returns aiports, units or navigational aids.

Returns:

  • (Array<AIXM::Feature::Airport, AIXM::Feature::Unit, AIXM::Feature::NavigationalAid>) —

    aiports, units or navigational aids


47
# File 'lib/aixm/feature/organisation.rb', line 47

has_many :members, accept: [:airport, :unit, 'AIXM::Feature::NavigationalAid']
You are visitor 01402860 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.