Class: Google::Apis::GamesV1::MetagameConfig

Inherits:
Object
  • Object
show all
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

The metagame config resource

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MetagameConfig

Returns a new instance of MetagameConfig.



1632
1633
1634
# File 'generated/google/apis/games_v1/classes.rb', line 1632

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#current_versionFixnum

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

Returns:

  • (Fixnum)


1619
1620
1621
# File 'generated/google/apis/games_v1/classes.rb', line 1619

def current_version
  @current_version
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#metagameConfig. Corresponds to the JSON property kind

Returns:

  • (String)


1625
1626
1627
# File 'generated/google/apis/games_v1/classes.rb', line 1625

def kind
  @kind
end

#player_levelsArray<Google::Apis::GamesV1::PlayerLevel>

The list of player levels. Corresponds to the JSON property playerLevels



1630
1631
1632
# File 'generated/google/apis/games_v1/classes.rb', line 1630

def player_levels
  @player_levels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1637
1638
1639
1640
1641
# File 'generated/google/apis/games_v1/classes.rb', line 1637

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