Class: FlightRouteStruct

Inherits:
Object
  • Object
show all
Defined in:
lib/FlightXML2REST.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(latitude = nil, longitude = nil, name = nil, type = nil) ⇒ FlightRouteStruct

Returns a new instance of FlightRouteStruct.



644
645
646
647
648
649
# File 'lib/FlightXML2REST.rb', line 644

def initialize (latitude = nil, longitude = nil, name = nil, type = nil)
  @latitude = latitude
  @longitude = longitude
  @name = name
  @type = type
end

Instance Attribute Details

#latitudeObject

Returns the value of attribute latitude.



643
644
645
# File 'lib/FlightXML2REST.rb', line 643

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude.



643
644
645
# File 'lib/FlightXML2REST.rb', line 643

def longitude
  @longitude
end

#nameObject

Returns the value of attribute name.



643
644
645
# File 'lib/FlightXML2REST.rb', line 643

def name
  @name
end

#typeObject

Returns the value of attribute type.



643
644
645
# File 'lib/FlightXML2REST.rb', line 643

def type
  @type
end