Class: BlockIdentCheckResults

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockIdentCheckResultObject

Returns the value of attribute blockIdentCheckResult.



560
561
562
# File 'lib/FlightXML2REST.rb', line 560

def blockIdentCheckResult
  @blockIdentCheckResult
end