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.
2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 |
# File 'lib/FlightXML2REST.rb', line 2472 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.
2461 2462 2463 |
# File 'lib/FlightXML2REST.rb', line 2461 def aircrafttype @aircrafttype end |
#alert_id ⇒ Object
Returns the value of attribute alert_id.
2461 2462 2463 |
# File 'lib/FlightXML2REST.rb', line 2461 def alert_id @alert_id end |
#channels ⇒ Object
Returns the value of attribute channels.
2461 2462 2463 |
# File 'lib/FlightXML2REST.rb', line 2461 def channels @channels end |
#date_end ⇒ Object
Returns the value of attribute date_end.
2461 2462 2463 |
# File 'lib/FlightXML2REST.rb', line 2461 def date_end @date_end end |
#date_start ⇒ Object
Returns the value of attribute date_start.
2461 2462 2463 |
# File 'lib/FlightXML2REST.rb', line 2461 def date_start @date_start end |
#destination ⇒ Object
Returns the value of attribute destination.
2461 2462 2463 |
# File 'lib/FlightXML2REST.rb', line 2461 def destination @destination end |
#enabled ⇒ Object
Returns the value of attribute enabled.
2461 2462 2463 |
# File 'lib/FlightXML2REST.rb', line 2461 def enabled @enabled end |
#ident ⇒ Object
Returns the value of attribute ident.
2461 2462 2463 |
# File 'lib/FlightXML2REST.rb', line 2461 def ident @ident end |
#max_weekly ⇒ Object
Returns the value of attribute max_weekly.
2461 2462 2463 |
# File 'lib/FlightXML2REST.rb', line 2461 def max_weekly @max_weekly end |
#origin ⇒ Object
Returns the value of attribute origin.
2461 2462 2463 |
# File 'lib/FlightXML2REST.rb', line 2461 def origin @origin end |
Instance Method Details
#post ⇒ Object
2495 2496 2497 2498 |
# File 'lib/FlightXML2REST.rb', line 2495 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 |