Sha256: bd5cc9816f192585b1456da5218b9158a8b6104a198f6ac15516e2c5088f1666

Contents?: true

Size: 1.03 KB

Versions: 4

Compression:

Stored size: 1.03 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_number, as: "busNumber", types: [
          "string",
        ]

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openactive-0.1.2 lib/openactive/models/schema/bus_trip.rb
openactive-0.1.1 lib/openactive/models/schema/bus_trip.rb
openactive-0.1.0 lib/openactive/models/schema/bus_trip.rb
openactive-0.1.0.rc1 lib/openactive/models/schema/bus_trip.rb