Class: AirlineInsightStruct

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(carrier = nil, destination = nil, fare_max = nil, fare_median = nil, fare_min = nil, flights_performed = nil, flights_scheduled = nil, layover = nil, opcarrier = nil, origin = nil, percent = nil, total_mail = nil, total_passengers = nil, total_payload = nil, total_seats = nil) ⇒ AirlineInsightStruct

Returns a new instance of AirlineInsightStruct.



323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
# File 'lib/FlightXML2REST.rb', line 323

def initialize (carrier = nil,
                destination = nil,
                fare_max = nil,
                fare_median = nil,
                fare_min = nil,
                flights_performed = nil,
                flights_scheduled = nil,
                layover = nil,
                opcarrier = nil,
                origin = nil,
                percent = nil,
                total_mail = nil,
                total_passengers = nil,
                total_payload = nil,
                total_seats = nil)
  @carrier = carrier
  @destination = destination
  @fare_max = fare_max
  @fare_median = fare_median
  @fare_min = fare_min
  @flights_performed = flights_performed
  @flights_scheduled = flights_scheduled
  @layover = layover
  @opcarrier = opcarrier
  @origin = origin
  @percent = percent
  @total_mail = total_mail
  @total_passengers = total_passengers
  @total_payload = total_payload
  @total_seats = total_seats
end

Instance Attribute Details

#carrierObject

Returns the value of attribute carrier.



307
308
309
# File 'lib/FlightXML2REST.rb', line 307

def carrier
  @carrier
end

#destinationObject

Returns the value of attribute destination.



307
308
309
# File 'lib/FlightXML2REST.rb', line 307

def destination
  @destination
end

#fare_maxObject

Returns the value of attribute fare_max.



307
308
309
# File 'lib/FlightXML2REST.rb', line 307

def fare_max
  @fare_max
end

#fare_medianObject

Returns the value of attribute fare_median.



307
308
309
# File 'lib/FlightXML2REST.rb', line 307

def fare_median
  @fare_median
end

#fare_minObject

Returns the value of attribute fare_min.



307
308
309
# File 'lib/FlightXML2REST.rb', line 307

def fare_min
  @fare_min
end

#flights_performedObject

Returns the value of attribute flights_performed.



307
308
309
# File 'lib/FlightXML2REST.rb', line 307

def flights_performed
  @flights_performed
end

#flights_scheduledObject

Returns the value of attribute flights_scheduled.



307
308
309
# File 'lib/FlightXML2REST.rb', line 307

def flights_scheduled
  @flights_scheduled
end

#layoverObject

Returns the value of attribute layover.



307
308
309
# File 'lib/FlightXML2REST.rb', line 307

def layover
  @layover
end

#opcarrierObject

Returns the value of attribute opcarrier.



307
308
309
# File 'lib/FlightXML2REST.rb', line 307

def opcarrier
  @opcarrier
end

#originObject

Returns the value of attribute origin.



307
308
309
# File 'lib/FlightXML2REST.rb', line 307

def origin
  @origin
end

#percentObject

Returns the value of attribute percent.



307
308
309
# File 'lib/FlightXML2REST.rb', line 307

def percent
  @percent
end

#total_mailObject

Returns the value of attribute total_mail.



307
308
309
# File 'lib/FlightXML2REST.rb', line 307

def total_mail
  @total_mail
end

#total_passengersObject

Returns the value of attribute total_passengers.



307
308
309
# File 'lib/FlightXML2REST.rb', line 307

def total_passengers
  @total_passengers
end

#total_payloadObject

Returns the value of attribute total_payload.



307
308
309
# File 'lib/FlightXML2REST.rb', line 307

def total_payload
  @total_payload
end

#total_seatsObject

Returns the value of attribute total_seats.



307
308
309
# File 'lib/FlightXML2REST.rb', line 307

def total_seats
  @total_seats
end