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.



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

#aircrafttypeObject

Returns the value of attribute aircrafttype.



2249
2250
2251
# File 'lib/FlightXML2REST.rb', line 2249

def aircrafttype
  @aircrafttype
end

#alert_idObject

Returns the value of attribute alert_id.



2249
2250
2251
# File 'lib/FlightXML2REST.rb', line 2249

def alert_id
  @alert_id
end

#channelsObject

Returns the value of attribute channels.



2249
2250
2251
# File 'lib/FlightXML2REST.rb', line 2249

def channels
  @channels
end

#date_endObject

Returns the value of attribute date_end.



2249
2250
2251
# File 'lib/FlightXML2REST.rb', line 2249

def date_end
  @date_end
end

#date_startObject

Returns the value of attribute date_start.



2249
2250
2251
# File 'lib/FlightXML2REST.rb', line 2249

def date_start
  @date_start
end

#destinationObject

Returns the value of attribute destination.



2249
2250
2251
# File 'lib/FlightXML2REST.rb', line 2249

def destination
  @destination
end

#enabledObject

Returns the value of attribute enabled.



2249
2250
2251
# File 'lib/FlightXML2REST.rb', line 2249

def enabled
  @enabled
end

#identObject

Returns the value of attribute ident.



2249
2250
2251
# File 'lib/FlightXML2REST.rb', line 2249

def ident
  @ident
end

#max_weeklyObject

Returns the value of attribute max_weekly.



2249
2250
2251
# File 'lib/FlightXML2REST.rb', line 2249

def max_weekly
  @max_weekly
end

#originObject

Returns the value of attribute origin.



2249
2250
2251
# File 'lib/FlightXML2REST.rb', line 2249

def origin
  @origin
end

Instance Method Details

#postObject



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