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.



290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
# File 'lib/FlightXML2REST.rb', line 290

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.



274
275
276
# File 'lib/FlightXML2REST.rb', line 274

def carrier
  @carrier
end

#destinationObject

Returns the value of attribute destination.



274
275
276
# File 'lib/FlightXML2REST.rb', line 274

def destination
  @destination
end

#fare_maxObject

Returns the value of attribute fare_max.



274
275
276
# File 'lib/FlightXML2REST.rb', line 274

def fare_max
  @fare_max
end

#fare_medianObject

Returns the value of attribute fare_median.



274
275
276
# File 'lib/FlightXML2REST.rb', line 274

def fare_median
  @fare_median
end

#fare_minObject

Returns the value of attribute fare_min.



274
275
276
# File 'lib/FlightXML2REST.rb', line 274

def fare_min
  @fare_min
end

#flights_performedObject

Returns the value of attribute flights_performed.



274
275
276
# File 'lib/FlightXML2REST.rb', line 274

def flights_performed
  @flights_performed
end

#flights_scheduledObject

Returns the value of attribute flights_scheduled.



274
275
276
# File 'lib/FlightXML2REST.rb', line 274

def flights_scheduled
  @flights_scheduled
end

#layoverObject

Returns the value of attribute layover.



274
275
276
# File 'lib/FlightXML2REST.rb', line 274

def layover
  @layover
end

#opcarrierObject

Returns the value of attribute opcarrier.



274
275
276
# File 'lib/FlightXML2REST.rb', line 274

def opcarrier
  @opcarrier
end

#originObject

Returns the value of attribute origin.



274
275
276
# File 'lib/FlightXML2REST.rb', line 274

def origin
  @origin
end

#percentObject

Returns the value of attribute percent.



274
275
276
# File 'lib/FlightXML2REST.rb', line 274

def percent
  @percent
end

#total_mailObject

Returns the value of attribute total_mail.



274
275
276
# File 'lib/FlightXML2REST.rb', line 274

def total_mail
  @total_mail
end

#total_passengersObject

Returns the value of attribute total_passengers.



274
275
276
# File 'lib/FlightXML2REST.rb', line 274

def total_passengers
  @total_passengers
end

#total_payloadObject

Returns the value of attribute total_payload.



274
275
276
# File 'lib/FlightXML2REST.rb', line 274

def total_payload
  @total_payload
end

#total_seatsObject

Returns the value of attribute total_seats.



274
275
276
# File 'lib/FlightXML2REST.rb', line 274

def total_seats
  @total_seats
end