Class: RegisterAlertEndpointResults

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#registerAlertEndpointResultObject

Returns the value of attribute registerAlertEndpointResult.



2031
2032
2033
# File 'lib/FlightXML2REST.rb', line 2031

def registerAlertEndpointResult
  @registerAlertEndpointResult
end