Class: RegisterAlertEndpointResults
- Inherits:
-
Object
- Object
- RegisterAlertEndpointResults
- Defined in:
- lib/FlightXML2REST.rb
Instance Attribute Summary collapse
-
#registerAlertEndpointResult ⇒ Object
Returns the value of attribute registerAlertEndpointResult.
Instance Method Summary collapse
-
#initialize(registerAlertEndpointResult = nil) ⇒ RegisterAlertEndpointResults
constructor
A new instance of RegisterAlertEndpointResults.
Constructor Details
#initialize(registerAlertEndpointResult = nil) ⇒ RegisterAlertEndpointResults
Returns a new instance of RegisterAlertEndpointResults.
2032 2033 2034 2035 2036 2037 2038 2039 2040 |
# File 'lib/FlightXML2REST.rb', line 2032 def initialize(registerAlertEndpointResult = nil) begin rawRegisterAlertEndpointResult = JSON.parse(registerAlertEndpointResult) registerAlertEndpointResult = rawRegisterAlertEndpointResult['RegisterAlertEndpointResult'] @registerAlertEndpointResult = registerAlertEndpointResult rescue raise FlightAwareError.new(rawRegisterAlertEndpointResult['error']).error end end |
Instance Attribute Details
#registerAlertEndpointResult ⇒ Object
Returns the value of attribute registerAlertEndpointResult.
2031 2032 2033 |
# File 'lib/FlightXML2REST.rb', line 2031 def registerAlertEndpointResult @registerAlertEndpointResult end |