Class: SetAlertRequest
- Inherits:
-
Object
- Object
- SetAlertRequest
- Defined in:
- lib/FlightXML2REST.rb
Overview
SetAlert
Instance Attribute Summary collapse
-
#aircrafttype ⇒ Object
Returns the value of attribute aircrafttype.
-
#alert_id ⇒ Object
Returns the value of attribute alert_id.
-
#channels ⇒ Object
Returns the value of attribute channels.
-
#date_end ⇒ Object
Returns the value of attribute date_end.
-
#date_start ⇒ Object
Returns the value of attribute date_start.
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#ident ⇒ Object
Returns the value of attribute ident.
-
#max_weekly ⇒ Object
Returns the value of attribute max_weekly.
-
#origin ⇒ Object
Returns the value of attribute origin.
Instance Method Summary collapse
-
#initialize(aircrafttype = nil, alert_id = nil, channels = nil, date_end = nil, date_start = nil, destination = nil, enabled = nil, ident = nil, max_weekly = nil, origin = nil) ⇒ SetAlertRequest
constructor
A new instance of SetAlertRequest.
- #post ⇒ Object
Constructor Details
#initialize(aircrafttype = nil, alert_id = nil, channels = nil, date_end = nil, date_start = nil, destination = nil, enabled = nil, ident = nil, max_weekly = nil, origin = nil) ⇒ SetAlertRequest
Returns a new instance of SetAlertRequest.
2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 |
# File 'lib/FlightXML2REST.rb', line 2260 def initialize(aircrafttype = nil, alert_id = nil, channels = nil, date_end = nil, date_start = nil, destination = nil, enabled = nil, ident = nil, max_weekly = nil, origin = nil ) @aircrafttype = aircrafttype @alert_id = alert_id @channels = channels @date_end = date_end @date_start = date_start @destination = destination @enabled = enabled @ident = ident @max_weekly = max_weekly @origin = origin end |
Instance Attribute Details
#aircrafttype ⇒ Object
Returns the value of attribute aircrafttype.
2249 2250 2251 |
# File 'lib/FlightXML2REST.rb', line 2249 def aircrafttype @aircrafttype end |
#alert_id ⇒ Object
Returns the value of attribute alert_id.
2249 2250 2251 |
# File 'lib/FlightXML2REST.rb', line 2249 def alert_id @alert_id end |
#channels ⇒ Object
Returns the value of attribute channels.
2249 2250 2251 |
# File 'lib/FlightXML2REST.rb', line 2249 def channels @channels end |
#date_end ⇒ Object
Returns the value of attribute date_end.
2249 2250 2251 |
# File 'lib/FlightXML2REST.rb', line 2249 def date_end @date_end end |
#date_start ⇒ Object
Returns the value of attribute date_start.
2249 2250 2251 |
# File 'lib/FlightXML2REST.rb', line 2249 def date_start @date_start end |
#destination ⇒ Object
Returns the value of attribute destination.
2249 2250 2251 |
# File 'lib/FlightXML2REST.rb', line 2249 def destination @destination end |
#enabled ⇒ Object
Returns the value of attribute enabled.
2249 2250 2251 |
# File 'lib/FlightXML2REST.rb', line 2249 def enabled @enabled end |
#ident ⇒ Object
Returns the value of attribute ident.
2249 2250 2251 |
# File 'lib/FlightXML2REST.rb', line 2249 def ident @ident end |
#max_weekly ⇒ Object
Returns the value of attribute max_weekly.
2249 2250 2251 |
# File 'lib/FlightXML2REST.rb', line 2249 def max_weekly @max_weekly end |
#origin ⇒ Object
Returns the value of attribute origin.
2249 2250 2251 |
# File 'lib/FlightXML2REST.rb', line 2249 def origin @origin end |
Instance Method Details
#post ⇒ Object
2283 2284 2285 2286 |
# File 'lib/FlightXML2REST.rb', line 2283 def post "aircrafttype=#@aircrafttype&alert_id=#@alert_id&channels=#@channels&date_end=#@date_end&date_start=#@date_start" + "&destination=#@destination&enabled=#@enabled&ident=#@ident&max_weekly=#@max_weekly&origin=#@origin" end |