Sha256: d67ef6d681e7394e52f6e75d3c29221abd9247c866c1f20a913157777a4c43ee

Contents?: true

Size: 1.14 KB

Versions: 4

Compression:

Stored size: 1.14 KB

Contents

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

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

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

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

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

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