class SetAlertRequest

SetAlert

Attributes

aircrafttype[RW]
alert_id[RW]
channels[RW]
date_end[RW]
date_start[RW]
destination[RW]
enabled[RW]
ident[RW]
max_weekly[RW]
origin[RW]

Public Class Methods

new(aircrafttype = nil, alert_id = nil, channels = nil, date_end = nil, date_start = nil, destination = nil, enabled = nil, ident = nil, max_weekly = nil, origin = nil ) click to toggle source
# 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

Public Instance Methods

post() click to toggle source
# 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