Sha256: e7c2b8c2381ae97c9ca53f8b1c9b7820a9865179b66e0b2440607fd2b61f747c

Contents?: true

Size: 1.26 KB

Versions: 4

Compression:

Stored size: 1.26 KB

Contents

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

        # @return [OpenActive::Models::Schema::QuantitativeValue]
        define_property :number_of_players, as: "numberOfPlayers", types: [
          "OpenActive::Models::Schema::QuantitativeValue",
        ]

        # @return [OpenActive::Models::Schema::Thing]
        define_property :quest, as: "quest", types: [
          "OpenActive::Models::Schema::Thing",
        ]

        # @return [OpenActive::Models::Schema::Place,OpenActive::Models::Schema::PostalAddress,URI]
        define_property :game_location, as: "gameLocation", types: [
          "OpenActive::Models::Schema::Place",
          "OpenActive::Models::Schema::PostalAddress",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::Thing]
        define_property :character_attribute, as: "characterAttribute", types: [
          "OpenActive::Models::Schema::Thing",
        ]

        # @return [OpenActive::Models::Schema::Thing]
        define_property :game_item, as: "gameItem", types: [
          "OpenActive::Models::Schema::Thing",
        ]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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