Sha256: 5f33e2c009c8481a28de67dd5556ccfcaf1d575a9063b459ebc6681c6f5846de

Contents?: true

Size: 821 Bytes

Versions: 2

Compression:

Stored size: 821 Bytes

Contents

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

        # @return [int,nil]
        define_property :players_online, as: "playersOnline", types: [
          "int",
          "null",
        ]

        # @return [OpenActive::Models::Schema::VideoGame,URI]
        define_property :game, as: "game", types: [
          "OpenActive::Models::Schema::VideoGame",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::GameServerStatus,URI]
        define_property :server_status, as: "serverStatus", types: [
          "OpenActive::Models::Schema::GameServerStatus",
          "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/game_server.rb
openactive-0.4.0 lib/openactive/models/schema/game_server.rb