Class: SetAlertResults
- Inherits:
-
Object
- Object
- SetAlertResults
- Defined in:
- lib/FlightXML2REST.rb
Instance Attribute Summary collapse
-
#setAlertResult ⇒ Object
Returns the value of attribute setAlertResult.
Instance Method Summary collapse
-
#initialize(setAlertResult = nil) ⇒ SetAlertResults
constructor
A new instance of SetAlertResults.
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
#setAlertResult ⇒ Object
Returns the value of attribute setAlertResult.
2502 2503 2504 |
# File 'lib/FlightXML2REST.rb', line 2502 def setAlertResult @setAlertResult end |