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.



576
577
578
579
580
581
# File 'lib/FlightXML2REST.rb', line 576

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.



575
576
577
# File 'lib/FlightXML2REST.rb', line 575

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude.



575
576
577
# File 'lib/FlightXML2REST.rb', line 575

def longitude
  @longitude
end

#nameObject

Returns the value of attribute name.



575
576
577
# File 'lib/FlightXML2REST.rb', line 575

def name
  @name
end

#typeObject

Returns the value of attribute type.



575
576
577
# File 'lib/FlightXML2REST.rb', line 575

def type
  @type
end