Class: Google::Apis::GamesV1::MetagameConfig
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GamesV1::MetagameConfig
 
- 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 the metagame config resource
Instance Attribute Summary collapse
- 
  
    
      #current_version  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Current version of the metagame configuration data. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Uniquely identifies the type of this resource. 
- 
  
    
      #player_levels  ⇒ Array<Google::Apis::GamesV1::PlayerLevel> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The list of player levels. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ MetagameConfig 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of MetagameConfig. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ MetagameConfig
Returns a new instance of MetagameConfig
| 1714 1715 1716 | # File 'generated/google/apis/games_v1/classes.rb', line 1714 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#current_version ⇒ Fixnum
Current version of the metagame configuration data. When this data is updated,
the version number will be increased by one.
Corresponds to the JSON property currentVersion
| 1701 1702 1703 | # File 'generated/google/apis/games_v1/classes.rb', line 1701 def current_version @current_version end | 
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#metagameConfig.
Corresponds to the JSON property kind
| 1707 1708 1709 | # File 'generated/google/apis/games_v1/classes.rb', line 1707 def kind @kind end | 
#player_levels ⇒ Array<Google::Apis::GamesV1::PlayerLevel>
The list of player levels.
Corresponds to the JSON property playerLevels
| 1712 1713 1714 | # File 'generated/google/apis/games_v1/classes.rb', line 1712 def player_levels @player_levels end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1719 1720 1721 1722 1723 | # File 'generated/google/apis/games_v1/classes.rb', line 1719 def update!(**args) @current_version = args[:current_version] if args.key?(:current_version) @kind = args[:kind] if args.key?(:kind) @player_levels = args[:player_levels] if args.key?(:player_levels) end |