Class: Google::Apis::GamesV1::TurnBasedAutoMatchingCriteria
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GamesV1::TurnBasedAutoMatchingCriteria
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_v1/classes.rb,
 generated/google/apis/games_v1/representations.rb,
 generated/google/apis/games_v1/representations.rb
Overview
This is a JSON template for an turn-based auto-match criteria object.
Instance Attribute Summary collapse
- 
  
    
      #exclusive_bitmask  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A bitmask indicating when auto-matches are valid. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Uniquely identifies the type of this resource. 
- 
  
    
      #max_auto_matching_players  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The maximum number of players that should be added to the match by auto- matching. 
- 
  
    
      #min_auto_matching_players  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The minimum number of players that should be added to the match by auto- matching. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ TurnBasedAutoMatchingCriteria 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of TurnBasedAutoMatchingCriteria. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TurnBasedAutoMatchingCriteria
Returns a new instance of TurnBasedAutoMatchingCriteria
| 4095 4096 4097 | # File 'generated/google/apis/games_v1/classes.rb', line 4095 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#exclusive_bitmask ⇒ Fixnum
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
| 4075 4076 4077 | # File 'generated/google/apis/games_v1/classes.rb', line 4075 def exclusive_bitmask @exclusive_bitmask end | 
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#turnBasedAutoMatchingCriteria.
Corresponds to the JSON property kind
| 4081 4082 4083 | # File 'generated/google/apis/games_v1/classes.rb', line 4081 def kind @kind end | 
#max_auto_matching_players ⇒ Fixnum
The maximum number of players that should be added to the match by auto-
matching.
Corresponds to the JSON property maxAutoMatchingPlayers
| 4087 4088 4089 | # File 'generated/google/apis/games_v1/classes.rb', line 4087 def max_auto_matching_players @max_auto_matching_players end | 
#min_auto_matching_players ⇒ Fixnum
The minimum number of players that should be added to the match by auto-
matching.
Corresponds to the JSON property minAutoMatchingPlayers
| 4093 4094 4095 | # File 'generated/google/apis/games_v1/classes.rb', line 4093 def min_auto_matching_players @min_auto_matching_players end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 4100 4101 4102 4103 4104 4105 | # File 'generated/google/apis/games_v1/classes.rb', line 4100 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 |