Class: TailOwnerResults
- Inherits:
-
Object
- Object
- TailOwnerResults
- Defined in:
- lib/FlightXML2REST.rb
Instance Attribute Summary collapse
-
#tailOwnerResult ⇒ Object
Returns the value of attribute tailOwnerResult.
Instance Method Summary collapse
-
#initialize(tailOwnerResult = nil) ⇒ TailOwnerResults
constructor
A new instance of TailOwnerResults.
Constructor Details
#initialize(tailOwnerResult = nil) ⇒ TailOwnerResults
Returns a new instance of TailOwnerResults.
2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 |
# File 'lib/FlightXML2REST.rb', line 2578 def initialize(tailOwnerResult = nil) begin rawTailOwnerResult = JSON.parse(tailOwnerResult) tailOwnerResult = rawTailOwnerResult['TailOwnerResult'] @tailOwnerResult = TailOwnerStruct.new(tailOwnerResult['location'], tailOwnerResult['location2'], tailOwnerResult['owner'], tailOwnerResult['website'] ) rescue raise FlightAwareError.new(rawTailOwnerResult['error']).error end end |
Instance Attribute Details
#tailOwnerResult ⇒ Object
Returns the value of attribute tailOwnerResult.
2577 2578 2579 |
# File 'lib/FlightXML2REST.rb', line 2577 def tailOwnerResult @tailOwnerResult end |