Sha256: 86912bf9d10d98ba76a11c5ba9f04b4ce0f2a72f6234ab60caf11019806c03a8

Contents?: true

Size: 874 Bytes

Versions: 3

Compression:

Stored size: 874 Bytes

Contents

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

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

        # @return [OpenActive::Enums::Schema::GenderType,String,nil]
        define_property :gender, as: "gender", types: [
          "OpenActive::Enums::Schema::GenderType",
          "string",
          "null",
        ]

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

Version data entries

3 entries across 3 versions & 1 rubygems

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