Class: BlockIdentCheckResults
- Inherits:
-
Object
- Object
- BlockIdentCheckResults
- Defined in:
- lib/FlightXML2REST.rb
Instance Attribute Summary collapse
-
#blockIdentCheckResult ⇒ Object
Returns the value of attribute blockIdentCheckResult.
Instance Method Summary collapse
-
#initialize(blockIdentCheckResult = nil) ⇒ BlockIdentCheckResults
constructor
A new instance of BlockIdentCheckResults.
Constructor Details
#initialize(blockIdentCheckResult = nil) ⇒ BlockIdentCheckResults
Returns a new instance of BlockIdentCheckResults.
561 562 563 564 565 566 567 568 569 |
# File 'lib/FlightXML2REST.rb', line 561 def initialize(blockIdentCheckResult = nil) begin rawBlockIdentCheckResult = JSON.parse(blockIdentCheckResult) blockIdentCheckResult = rawBlockIdentCheckResult['BlockIdentCheckResult'] @blockIdentCheckResult = blockIdentCheckResult rescue raise FlightAwareError.new(rawBlockIdentCheckResult['error']).error end end |
Instance Attribute Details
#blockIdentCheckResult ⇒ Object
Returns the value of attribute blockIdentCheckResult.
560 561 562 |
# File 'lib/FlightXML2REST.rb', line 560 def blockIdentCheckResult @blockIdentCheckResult end |