Class: Google::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/games_configuration_v1configuration/classes.rb,
lib/google/apis/games_configuration_v1configuration/representations.rb,
lib/google/apis/games_configuration_v1configuration/representations.rb

Overview

A leaderboard configuration detail.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LeaderboardConfigurationDetail

Returns a new instance of LeaderboardConfigurationDetail.



347
348
349
# File 'lib/google/apis/games_configuration_v1configuration/classes.rb', line 347

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

Instance Attribute Details

#icon_urlString

The icon url of this leaderboard. Writes to this field are ignored. Corresponds to the JSON property iconUrl

Returns:

  • (String)


324
325
326
# File 'lib/google/apis/games_configuration_v1configuration/classes.rb', line 324

def icon_url
  @icon_url
end

#kindString

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

Returns:

  • (String)


330
331
332
# File 'lib/google/apis/games_configuration_v1configuration/classes.rb', line 330

def kind
  @kind
end

#nameGoogle::Apis::GamesConfigurationV1configuration::LocalizedStringBundle

A localized string bundle resource. Corresponds to the JSON property name



335
336
337
# File 'lib/google/apis/games_configuration_v1configuration/classes.rb', line 335

def name
  @name
end

#score_formatGoogle::Apis::GamesConfigurationV1configuration::GamesNumberFormatConfiguration

A number format resource. Corresponds to the JSON property scoreFormat



340
341
342
# File 'lib/google/apis/games_configuration_v1configuration/classes.rb', line 340

def score_format
  @score_format
end

#sort_rankFixnum

The sort rank of this leaderboard. Writes to this field are ignored. Corresponds to the JSON property sortRank

Returns:

  • (Fixnum)


345
346
347
# File 'lib/google/apis/games_configuration_v1configuration/classes.rb', line 345

def sort_rank
  @sort_rank
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



352
353
354
355
356
357
358
# File 'lib/google/apis/games_configuration_v1configuration/classes.rb', line 352

def update!(**args)
  @icon_url = args[:icon_url] if args.key?(:icon_url)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @score_format = args[:score_format] if args.key?(:score_format)
  @sort_rank = args[:sort_rank] if args.key?(:sort_rank)
end