Sha256: 3accb02a06aedebf3fc5466317ff19dc58de5c442936bcf3e9adc343880be4ab

Contents?: true

Size: 1.07 KB

Versions: 3

Compression:

Stored size: 1.07 KB

Contents

module OpenActive
  module Models
    module Schema
      class BusTrip < ::OpenActive::Models::Schema::Trip
        # @!attribute type
        # @return [String]
        def type
          "schema:BusTrip"
        end

        # @return [String]
        define_property :bus_name, as: "busName", types: [
          "string",
        ]

        # @return [OpenActive::Models::Schema::BusStop,OpenActive::Models::Schema::BusStation,URI]
        define_property :arrival_bus_stop, as: "arrivalBusStop", types: [
          "OpenActive::Models::Schema::BusStop",
          "OpenActive::Models::Schema::BusStation",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::BusStation,OpenActive::Models::Schema::BusStop,URI]
        define_property :departure_bus_stop, as: "departureBusStop", types: [
          "OpenActive::Models::Schema::BusStation",
          "OpenActive::Models::Schema::BusStop",
          "URI",
        ]

        # @return [String]
        define_property :bus_number, as: "busNumber", types: [
          "string",
        ]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openactive-0.2.2 lib/openactive/models/schema/bus_trip.rb
openactive-0.2.1 lib/openactive/models/schema/bus_trip.rb
openactive-0.2.0 lib/openactive/models/schema/bus_trip.rb