Class: RegisterAlertEndpointRequest
- Inherits:
-
Object
- Object
- RegisterAlertEndpointRequest
- Defined in:
- lib/FlightXML2REST.rb
Overview
RegisterAlertEndpoint
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#format_type ⇒ Object
Returns the value of attribute format_type.
Instance Method Summary collapse
-
#initialize(address = nil, format_type = "json/post") ⇒ RegisterAlertEndpointRequest
constructor
A new instance of RegisterAlertEndpointRequest.
- #post ⇒ Object
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
#address ⇒ Object
Returns the value of attribute address.
2020 2021 2022 |
# File 'lib/FlightXML2REST.rb', line 2020 def address @address end |
#format_type ⇒ Object
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
#post ⇒ Object
2025 2026 2027 |
# File 'lib/FlightXML2REST.rb', line 2025 def post "address=#@address&format_type=#@format_type" end |