Sha256: f62f8688608c82cc56128fcdfaff0fa1da2e69bc40ce3fb87e23b31cb81f5228

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

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

        # @return [String]
        define_property :train_number, as: "trainNumber", types: [
          "string",
        ]

        # @return [OpenActive::Models::Schema::TrainStation,URI]
        define_property :arrival_station, as: "arrivalStation", types: [
          "OpenActive::Models::Schema::TrainStation",
          "URI",
        ]

        # @return [String]
        define_property :arrival_platform, as: "arrivalPlatform", types: [
          "string",
        ]

        # @return [String]
        define_property :train_name, as: "trainName", types: [
          "string",
        ]

        # @return [String]
        define_property :departure_platform, as: "departurePlatform", types: [
          "string",
        ]

        # @return [OpenActive::Models::Schema::TrainStation,URI]
        define_property :departure_station, as: "departureStation", types: [
          "OpenActive::Models::Schema::TrainStation",
          "URI",
        ]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openactive-0.5.0 lib/openactive/models/schema/train_trip.rb
openactive-0.4.0 lib/openactive/models/schema/train_trip.rb