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.



2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
# File 'lib/FlightXML2REST.rb', line 2476

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.



2465
2466
2467
# File 'lib/FlightXML2REST.rb', line 2465

def aircrafttype
  @aircrafttype
end

#alert_idObject

Returns the value of attribute alert_id.



2465
2466
2467
# File 'lib/FlightXML2REST.rb', line 2465

def alert_id
  @alert_id
end

#channelsObject

Returns the value of attribute channels.



2465
2466
2467
# File 'lib/FlightXML2REST.rb', line 2465

def channels
  @channels
end

#date_endObject

Returns the value of attribute date_end.



2465
2466
2467
# File 'lib/FlightXML2REST.rb', line 2465

def date_end
  @date_end
end

#date_startObject

Returns the value of attribute date_start.



2465
2466
2467
# File 'lib/FlightXML2REST.rb', line 2465

def date_start
  @date_start
end

#destinationObject

Returns the value of attribute destination.



2465
2466
2467
# File 'lib/FlightXML2REST.rb', line 2465

def destination
  @destination
end

#enabledObject

Returns the value of attribute enabled.



2465
2466
2467
# File 'lib/FlightXML2REST.rb', line 2465

def enabled
  @enabled
end

#identObject

Returns the value of attribute ident.



2465
2466
2467
# File 'lib/FlightXML2REST.rb', line 2465

def ident
  @ident
end

#max_weeklyObject

Returns the value of attribute max_weekly.



2465
2466
2467
# File 'lib/FlightXML2REST.rb', line 2465

def max_weekly
  @max_weekly
end

#originObject

Returns the value of attribute origin.



2465
2466
2467
# File 'lib/FlightXML2REST.rb', line 2465

def origin
  @origin
end

Instance Method Details

#postObject



2499
2500
2501
2502
# File 'lib/FlightXML2REST.rb', line 2499

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