Class: SetAlertResults

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(setAlertResult = nil) ⇒ SetAlertResults

Returns a new instance of SetAlertResults.



2503
2504
2505
2506
2507
2508
2509
2510
2511
# File 'lib/FlightXML2REST.rb', line 2503

def initialize(setAlertResult = nil)
  begin
    rawSetAlertResult = JSON.parse(setAlertResult)
    setAlertResult = rawSetAlertResult['SetAlertResult']
    @setAlertResult = setAlertResult
  rescue
      raise FlightAwareError.new(rawSetAlertResult['error']).error
  end
end

Instance Attribute Details

#setAlertResultObject

Returns the value of attribute setAlertResult.



2502
2503
2504
# File 'lib/FlightXML2REST.rb', line 2502

def setAlertResult
  @setAlertResult
end