Class: Ingenico::Direct::SDK::Domain::AirlineFlightLeg

Inherits:
Ingenico::Direct::SDK::DataObject show all
Defined in:
lib/ingenico/direct/sdk/domain/airline_flight_leg.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ingenico::Direct::SDK::DataObject

new_from_hash

Instance Attribute Details

#airline_classString

Returns the current value of airline_class.

Returns:

  • (String)

    the current value of airline_class



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def airline_class
  @airline_class
end

#arrival_airportString

Returns the current value of arrival_airport.

Returns:

  • (String)

    the current value of arrival_airport



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def arrival_airport
  @arrival_airport
end

#arrival_timeString

Returns the current value of arrival_time.

Returns:

  • (String)

    the current value of arrival_time



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def arrival_time
  @arrival_time
end

#carrier_codeString

Returns the current value of carrier_code.

Returns:

  • (String)

    the current value of carrier_code



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def carrier_code
  @carrier_code
end

#conjunction_ticketString

Returns the current value of conjunction_ticket.

Returns:

  • (String)

    the current value of conjunction_ticket



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def conjunction_ticket
  @conjunction_ticket
end

#coupon_numberString

Returns the current value of coupon_number.

Returns:

  • (String)

    the current value of coupon_number



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def coupon_number
  @coupon_number
end

#dateString

Returns the current value of date.

Returns:

  • (String)

    the current value of date



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def date
  @date
end

#departure_timeString

Returns the current value of departure_time.

Returns:

  • (String)

    the current value of departure_time



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def departure_time
  @departure_time
end

#endorsement_or_restrictionString

Returns the current value of endorsement_or_restriction.

Returns:

  • (String)

    the current value of endorsement_or_restriction



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def endorsement_or_restriction
  @endorsement_or_restriction
end

#exchange_ticketString

Returns the current value of exchange_ticket.

Returns:

  • (String)

    the current value of exchange_ticket



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def exchange_ticket
  @exchange_ticket
end

#fareString

Returns the current value of fare.

Returns:

  • (String)

    the current value of fare



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def fare
  @fare
end

#fare_basisString

Returns the current value of fare_basis.

Returns:

  • (String)

    the current value of fare_basis



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def fare_basis
  @fare_basis
end

#feeInteger

Returns the current value of fee.

Returns:

  • (Integer)

    the current value of fee



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def fee
  @fee
end

#flight_numberString

Returns the current value of flight_number.

Returns:

  • (String)

    the current value of flight_number



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def flight_number
  @flight_number
end

#leg_fareInteger

Returns the current value of leg_fare.

Returns:

  • (Integer)

    the current value of leg_fare



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def leg_fare
  @leg_fare
end

#numberInteger

Returns the current value of number.

Returns:

  • (Integer)

    the current value of number



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def number
  @number
end

#origin_airportString

Returns the current value of origin_airport.

Returns:

  • (String)

    the current value of origin_airport



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def origin_airport
  @origin_airport
end

#passenger_classString

Returns the current value of passenger_class.

Returns:

  • (String)

    the current value of passenger_class



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def passenger_class
  @passenger_class
end

#stopover_codeString

Returns the current value of stopover_code.

Returns:

  • (String)

    the current value of stopover_code



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def stopover_code
  @stopover_code
end

#taxesInteger

Returns the current value of taxes.

Returns:

  • (Integer)

    the current value of taxes



30
31
32
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 30

def taxes
  @taxes
end

Instance Method Details

#from_hash(hash) ⇒ Object



78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 78

def from_hash(hash)
  super
  @airline_class = hash['airlineClass'] if hash.key? 'airlineClass'
  @arrival_airport = hash['arrivalAirport'] if hash.key? 'arrivalAirport'
  @arrival_time = hash['arrivalTime'] if hash.key? 'arrivalTime'
  @carrier_code = hash['carrierCode'] if hash.key? 'carrierCode'
  @conjunction_ticket = hash['conjunctionTicket'] if hash.key? 'conjunctionTicket'
  @coupon_number = hash['couponNumber'] if hash.key? 'couponNumber'
  @date = hash['date'] if hash.key? 'date'
  @departure_time = hash['departureTime'] if hash.key? 'departureTime'
  @endorsement_or_restriction = hash['endorsementOrRestriction'] if hash.key? 'endorsementOrRestriction'
  @exchange_ticket = hash['exchangeTicket'] if hash.key? 'exchangeTicket'
  @fare = hash['fare'] if hash.key? 'fare'
  @fare_basis = hash['fareBasis'] if hash.key? 'fareBasis'
  @fee = hash['fee'] if hash.key? 'fee'
  @flight_number = hash['flightNumber'] if hash.key? 'flightNumber'
  @leg_fare = hash['legFare'] if hash.key? 'legFare'
  @number = hash['number'] if hash.key? 'number'
  @origin_airport = hash['originAirport'] if hash.key? 'originAirport'
  @passenger_class = hash['passengerClass'] if hash.key? 'passengerClass'
  @stopover_code = hash['stopoverCode'] if hash.key? 'stopoverCode'
  @taxes = hash['taxes'] if hash.key? 'taxes'
end

#to_hHash

Returns:

  • (Hash)


53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/ingenico/direct/sdk/domain/airline_flight_leg.rb', line 53

def to_h
  hash = super
  hash['airlineClass'] = @airline_class unless @airline_class.nil?
  hash['arrivalAirport'] = @arrival_airport unless @arrival_airport.nil?
  hash['arrivalTime'] = @arrival_time unless @arrival_time.nil?
  hash['carrierCode'] = @carrier_code unless @carrier_code.nil?
  hash['conjunctionTicket'] = @conjunction_ticket unless @conjunction_ticket.nil?
  hash['couponNumber'] = @coupon_number unless @coupon_number.nil?
  hash['date'] = @date unless @date.nil?
  hash['departureTime'] = @departure_time unless @departure_time.nil?
  hash['endorsementOrRestriction'] = @endorsement_or_restriction unless @endorsement_or_restriction.nil?
  hash['exchangeTicket'] = @exchange_ticket unless @exchange_ticket.nil?
  hash['fare'] = @fare unless @fare.nil?
  hash['fareBasis'] = @fare_basis unless @fare_basis.nil?
  hash['fee'] = @fee unless @fee.nil?
  hash['flightNumber'] = @flight_number unless @flight_number.nil?
  hash['legFare'] = @leg_fare unless @leg_fare.nil?
  hash['number'] = @number unless @number.nil?
  hash['originAirport'] = @origin_airport unless @origin_airport.nil?
  hash['passengerClass'] = @passenger_class unless @passenger_class.nil?
  hash['stopoverCode'] = @stopover_code unless @stopover_code.nil?
  hash['taxes'] = @taxes unless @taxes.nil?
  hash
end