class Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration

An leaderboard configuration resource.

Attributes

draft[RW]

A leaderboard configuration detail. Corresponds to the JSON property `draft` @return [Google::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail]

id[RW]

The ID of the leaderboard. Corresponds to the JSON property `id` @return [String]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#leaderboardConfiguration`. Corresponds to the JSON property `kind` @return [String]

published[RW]

A leaderboard configuration detail. Corresponds to the JSON property `published` @return [Google::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail]

score_max[RW]

Maximum score that can be posted to this leaderboard. Corresponds to the JSON property `scoreMax` @return [Fixnum]

score_min[RW]

Minimum score that can be posted to this leaderboard. Corresponds to the JSON property `scoreMin` @return [Fixnum]

score_order[RW]

Corresponds to the JSON property `scoreOrder` @return [String]

token[RW]

The token for this resource. Corresponds to the JSON property `token` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/games_configuration_v1configuration/classes.rb, line 338
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/games_configuration_v1configuration/classes.rb, line 343
def update!(**args)
  @draft = args[:draft] if args.key?(:draft)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @published = args[:published] if args.key?(:published)
  @score_max = args[:score_max] if args.key?(:score_max)
  @score_min = args[:score_min] if args.key?(:score_min)
  @score_order = args[:score_order] if args.key?(:score_order)
  @token = args[:token] if args.key?(:token)
end