Sha256: 162f03177111ea1e0444920640c98c979b78c4e612710d77f17f92a92f0fc309

Contents?: true

Size: 1.03 KB

Versions: 4

Compression:

Stored size: 1.03 KB

Contents

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

        # @return [OpenActive::Models::Schema::SportsTeam,OpenActive::Models::Schema::Person]
        define_property :home_team, as: "homeTeam", types: [
          "OpenActive::Models::Schema::SportsTeam",
          "OpenActive::Models::Schema::Person",
        ]

        # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::SportsTeam]
        define_property :competitor, as: "competitor", types: [
          "OpenActive::Models::Schema::Person",
          "OpenActive::Models::Schema::SportsTeam",
        ]

        # @return [OpenActive::Models::Schema::SportsTeam,OpenActive::Models::Schema::Person]
        define_property :away_team, as: "awayTeam", types: [
          "OpenActive::Models::Schema::SportsTeam",
          "OpenActive::Models::Schema::Person",
        ]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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