Sha256: bd4986c63b48cc223f9a57b002b2fdcefa288b340e08cf2d3f0c56654215d0f5

Contents?: true

Size: 1.22 KB

Versions: 2

Compression:

Stored size: 1.22 KB

Contents

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

        # @return [String,URI]
        define_property :sport, as: "sport", types: [
          "string",
          "URI",
        ]

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

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

        # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::SportsTeam,URI]
        define_property :home_team, as: "homeTeam", types: [
          "OpenActive::Models::Schema::Person",
          "OpenActive::Models::Schema::SportsTeam",
          "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/sports_event.rb
openactive-0.4.0 lib/openactive/models/schema/sports_event.rb