Class: OpenActive::Models::Schema::Flight

Inherits:
Trip show all
Defined in:
lib/openactive/models/schema/flight.rb

Instance Attribute Summary collapse

Attributes inherited from Trip

#arrival_time, #departure_time, #itinerary, #offers, #part_of_trip, #provider, #sub_trip

Attributes inherited from Thing

#additional_type, #alternate_name, #description, #disambiguating_description, #identifier, #image, #main_entity_of_page, #name, #potential_action, #same_as, #subject_of, #url

Attributes inherited from JsonLdModel

#context, #id

Method Summary

Methods inherited from BaseModel

#assign_attributes, define_property, deserialize, #deserialize, deserialize_class, #initialize, #serialize, serialize, #set_property, #to_json

Methods included from Concerns::TypeChecker

#check_types, included

Methods included from Concerns::JsonLdSerializable

included, #to_h, #values

Constructor Details

This class inherits a constructor from OpenActive::BaseModel

Instance Attribute Details

#aircraftOpenActive::Models::Schema::Vehicle, String



72
73
74
# File 'lib/openactive/models/schema/flight.rb', line 72

def aircraft
  @aircraft
end

#arrival_airportOpenActive::Models::Schema::Airport



28
29
30
# File 'lib/openactive/models/schema/flight.rb', line 28

def arrival_airport
  @arrival_airport
end

#arrival_gateString

Returns:

  • (String)


83
84
85
# File 'lib/openactive/models/schema/flight.rb', line 83

def arrival_gate
  @arrival_gate
end

#arrival_terminalString

Returns:

  • (String)


49
50
51
# File 'lib/openactive/models/schema/flight.rb', line 49

def arrival_terminal
  @arrival_terminal
end

#boarding_policyOpenActive::Enums::Schema::BoardingPolicyType?



43
44
45
# File 'lib/openactive/models/schema/flight.rb', line 43

def boarding_policy
  @boarding_policy
end

#carrierOpenActive::Models::Schema::Organization



78
79
80
# File 'lib/openactive/models/schema/flight.rb', line 78

def carrier
  @carrier
end

#departure_airportOpenActive::Models::Schema::Airport



18
19
20
# File 'lib/openactive/models/schema/flight.rb', line 18

def departure_airport
  @departure_airport
end

#departure_gateString

Returns:

  • (String)


33
34
35
# File 'lib/openactive/models/schema/flight.rb', line 33

def departure_gate
  @departure_gate
end

#departure_terminalString

Returns:

  • (String)


67
68
69
# File 'lib/openactive/models/schema/flight.rb', line 67

def departure_terminal
  @departure_terminal
end

#estimated_flight_durationString, ...

Returns:

  • (String, ActiveSupport::Duration, nil)


60
61
62
# File 'lib/openactive/models/schema/flight.rb', line 60

def estimated_flight_duration
  @estimated_flight_duration
end

#flight_distanceString, OpenActive::Models::Schema::Distance



54
55
56
# File 'lib/openactive/models/schema/flight.rb', line 54

def flight_distance
  @flight_distance
end

#flight_numberString

Returns:

  • (String)


38
39
40
# File 'lib/openactive/models/schema/flight.rb', line 38

def flight_number
  @flight_number
end

#meal_serviceString

Returns:

  • (String)


23
24
25
# File 'lib/openactive/models/schema/flight.rb', line 23

def meal_service
  @meal_service
end

#sellerOpenActive::Models::Schema::Person, OpenActive::Models::Schema::Organization



12
13
14
# File 'lib/openactive/models/schema/flight.rb', line 12

def seller
  @seller
end

#typeString

Returns:

  • (String)


7
8
9
# File 'lib/openactive/models/schema/flight.rb', line 7

def type
  "schema:Flight"
end

#web_checkin_timeDateTime?

Returns:

  • (DateTime, nil)


88
89
90
# File 'lib/openactive/models/schema/flight.rb', line 88

def web_checkin_time
  @web_checkin_time
end