Class: OpenActive::Models::Schema::Trip

Inherits:
Intangible show all
Defined in:
lib/openactive/models/schema/trip.rb

Direct Known Subclasses

BusTrip, Flight, TouristTrip, TrainTrip

Instance Attribute Summary collapse

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

#arrival_timeDateTime, ...

Returns:

  • (DateTime, Time, nil)


35
36
37
# File 'lib/openactive/models/schema/trip.rb', line 35

def arrival_time
  @arrival_time
end

#departure_timeDateTime, ...

Returns:

  • (DateTime, Time, nil)


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

def departure_time
  @departure_time
end

#itineraryOpenActive::Models::Schema::Place, OpenActive::Models::Schema::ItemList



17
18
19
# File 'lib/openactive/models/schema/trip.rb', line 17

def itinerary
  @itinerary
end

#offersOpenActive::Models::Schema::Offer



42
43
44
# File 'lib/openactive/models/schema/trip.rb', line 42

def offers
  @offers
end

#part_of_tripOpenActive::Models::Schema::Trip



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

def part_of_trip
  @part_of_trip
end

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



47
48
49
# File 'lib/openactive/models/schema/trip.rb', line 47

def provider
  @provider
end

#sub_tripOpenActive::Models::Schema::Trip



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

def sub_trip
  @sub_trip
end

#typeString

Returns:

  • (String)


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

def type
  "schema:Trip"
end