Class: MapFlightResults

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mapFlightResult = nil) ⇒ MapFlightResults

Returns a new instance of MapFlightResults.



1768
1769
1770
1771
1772
1773
1774
1775
1776
# File 'lib/FlightXML2REST.rb', line 1768

def initialize(mapFlightResult = nil)
  begin
    rawMapFlightResult = JSON.parse(mapFlightResult)
    mapFlightResult = rawMapFlightResult['MapFlightResult']
    @mapFlightResult = mapFlightResult
  rescue
      raise FlightAwareError.new(rawMapFlightResult['error']).error
  end
end

Instance Attribute Details

#mapFlightResultObject

Returns the value of attribute mapFlightResult.



1767
1768
1769
# File 'lib/FlightXML2REST.rb', line 1767

def mapFlightResult
  @mapFlightResult
end