Class: DeleteAlertResults
- Inherits:
-
Object
- Object
- DeleteAlertResults
- Defined in:
- lib/FlightXML2REST.rb
Instance Attribute Summary collapse
-
#deleteAlertResult ⇒ Object
Returns the value of attribute deleteAlertResult.
Instance Method Summary collapse
-
#initialize(deleteAlertResult = nil) ⇒ DeleteAlertResults
constructor
A new instance of DeleteAlertResults.
Constructor Details
#initialize(deleteAlertResult = nil) ⇒ DeleteAlertResults
Returns a new instance of DeleteAlertResults.
708 709 710 711 712 713 714 715 716 |
# File 'lib/FlightXML2REST.rb', line 708 def initialize(deleteAlertResult = nil) begin rawDeleteAlertResult = JSON.parse(deleteAlertResult) deleteAlertResult = rawDeleteAlertResult['DeleteAlertResult'] @deleteAlertResult = deleteAlertResult rescue raise FlightAwareError.new(rawDeleteAlertResult['error']).error end end |
Instance Attribute Details
#deleteAlertResult ⇒ Object
Returns the value of attribute deleteAlertResult.
707 708 709 |
# File 'lib/FlightXML2REST.rb', line 707 def deleteAlertResult @deleteAlertResult end |