Class: Yoomoney::Models::Airline::Leg
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(booking_reference: nil, legs: nil, passengers: nil, ticket_number: nil) ⇒ Object
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# File 'lib/yoomoney/models/airline.rb', line 32
class Leg < Yoomoney::Internal::Type::BaseModel
required :departure_airport, String
required :departure_date, String
required :destination_airport, String
optional :carrier_code, String
end
|
Instance Attribute Details
#carrier_code ⇒ String?
51
|
# File 'lib/yoomoney/models/airline.rb', line 51
optional :carrier_code, String
|
#departure_airport ⇒ String
36
|
# File 'lib/yoomoney/models/airline.rb', line 36
required :departure_airport, String
|
#departure_date ⇒ String
41
|
# File 'lib/yoomoney/models/airline.rb', line 41
required :departure_date, String
|
#destination_airport ⇒ String
46
|
# File 'lib/yoomoney/models/airline.rb', line 46
required :destination_airport, String
|