Class: RegisterAlertEndpointRequest

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

Overview

RegisterAlertEndpoint

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address = nil, format_type = "json/post") ⇒ RegisterAlertEndpointRequest

Returns a new instance of RegisterAlertEndpointRequest.



2025
2026
2027
2028
# File 'lib/FlightXML2REST.rb', line 2025

def initialize(address = nil, format_type = "json/post")
  @address = address
  @format_type = format_type
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



2024
2025
2026
# File 'lib/FlightXML2REST.rb', line 2024

def address
  @address
end

#format_typeObject

Returns the value of attribute format_type.



2024
2025
2026
# File 'lib/FlightXML2REST.rb', line 2024

def format_type
  @format_type
end

Instance Method Details

#postObject



2029
2030
2031
# File 'lib/FlightXML2REST.rb', line 2029

def post
  "address=#@address&format_type=#@format_type"
end