class Google::Apis::GamesV1::RoomAutoMatchingCriteria
This is a JSON template for a room auto-match criteria object.
Attributes
A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game. Corresponds to the JSON property `exclusiveBitmask` @return [String]
Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria. Corresponds to the JSON property `kind` @return [String]
The maximum number of players that should be added to the room by auto- matching. Corresponds to the JSON property `maxAutoMatchingPlayers` @return [Fixnum]
The minimum number of players that should be added to the room by auto- matching. Corresponds to the JSON property `minAutoMatchingPlayers` @return [Fixnum]
Public Class Methods
# File generated/google/apis/games_v1/classes.rb, line 3236 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/games_v1/classes.rb, line 3241 def update!(**args) @exclusive_bitmask = args[:exclusive_bitmask] if args.key?(:exclusive_bitmask) @kind = args[:kind] if args.key?(:kind) @max_auto_matching_players = args[:max_auto_matching_players] if args.key?(:max_auto_matching_players) @min_auto_matching_players = args[:min_auto_matching_players] if args.key?(:min_auto_matching_players) end