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.



2021
2022
2023
2024
# File 'lib/FlightXML2REST.rb', line 2021

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.



2020
2021
2022
# File 'lib/FlightXML2REST.rb', line 2020

def address
  @address
end

#format_typeObject

Returns the value of attribute format_type.



2020
2021
2022
# File 'lib/FlightXML2REST.rb', line 2020

def format_type
  @format_type
end

Instance Method Details

#postObject



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

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