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.



1849
1850
1851
1852
# File 'lib/FlightXML2REST.rb', line 1849

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.



1848
1849
1850
# File 'lib/FlightXML2REST.rb', line 1848

def address
  @address
end

#format_typeObject

Returns the value of attribute format_type.



1848
1849
1850
# File 'lib/FlightXML2REST.rb', line 1848

def format_type
  @format_type
end

Instance Method Details

#postObject



1853
1854
1855
# File 'lib/FlightXML2REST.rb', line 1853

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