Class: SetAlertRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/FlightXML2REST.rb

Overview

SetAlert

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#aircrafttypeObject

Returns the value of attribute aircrafttype.



2461
2462
2463
# File 'lib/FlightXML2REST.rb', line 2461

def aircrafttype
  @aircrafttype
end

#alert_idObject

Returns the value of attribute alert_id.



2461
2462
2463
# File 'lib/FlightXML2REST.rb', line 2461

def alert_id
  @alert_id
end

#channelsObject

Returns the value of attribute channels.



2461
2462
2463
# File 'lib/FlightXML2REST.rb', line 2461

def channels
  @channels
end

#date_endObject

Returns the value of attribute date_end.



2461
2462
2463
# File 'lib/FlightXML2REST.rb', line 2461

def date_end
  @date_end
end

#date_startObject

Returns the value of attribute date_start.



2461
2462
2463
# File 'lib/FlightXML2REST.rb', line 2461

def date_start
  @date_start
end

#destinationObject

Returns the value of attribute destination.



2461
2462
2463
# File 'lib/FlightXML2REST.rb', line 2461

def destination
  @destination
end

#enabledObject

Returns the value of attribute enabled.



2461
2462
2463
# File 'lib/FlightXML2REST.rb', line 2461

def enabled
  @enabled
end

#identObject

Returns the value of attribute ident.



2461
2462
2463
# File 'lib/FlightXML2REST.rb', line 2461

def ident
  @ident
end

#max_weeklyObject

Returns the value of attribute max_weekly.



2461
2462
2463
# File 'lib/FlightXML2REST.rb', line 2461

def max_weekly
  @max_weekly
end

#originObject

Returns the value of attribute origin.



2461
2462
2463
# File 'lib/FlightXML2REST.rb', line 2461

def origin
  @origin
end

Instance Method Details

#postObject



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