Class: Google::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail
- Inherits:
-
Object
- Object
- Google::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_configuration_v1configuration/classes.rb,
generated/google/apis/games_configuration_v1configuration/representations.rb,
generated/google/apis/games_configuration_v1configuration/representations.rb
Overview
A leaderboard configuration detail.
Instance Attribute Summary collapse
-
#icon_url ⇒ String
The icon url of this leaderboard.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#name ⇒ Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle
A localized string bundle resource.
-
#score_format ⇒ Google::Apis::GamesConfigurationV1configuration::GamesNumberFormatConfiguration
A number format resource.
-
#sort_rank ⇒ Fixnum
The sort rank of this leaderboard.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LeaderboardConfigurationDetail
constructor
A new instance of LeaderboardConfigurationDetail.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LeaderboardConfigurationDetail
Returns a new instance of LeaderboardConfigurationDetail.
385 386 387 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 385 def initialize(**args) update!(**args) end |
Instance Attribute Details
#icon_url ⇒ String
The icon url of this leaderboard. Writes to this field are ignored.
Corresponds to the JSON property iconUrl
362 363 364 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 362 def icon_url @icon_url end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string gamesConfiguration#leaderboardConfigurationDetail
.
Corresponds to the JSON property kind
368 369 370 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 368 def kind @kind end |
#name ⇒ Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle
A localized string bundle resource.
Corresponds to the JSON property name
373 374 375 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 373 def name @name end |
#score_format ⇒ Google::Apis::GamesConfigurationV1configuration::GamesNumberFormatConfiguration
A number format resource.
Corresponds to the JSON property scoreFormat
378 379 380 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 378 def score_format @score_format end |
#sort_rank ⇒ Fixnum
The sort rank of this leaderboard. Writes to this field are ignored.
Corresponds to the JSON property sortRank
383 384 385 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 383 def sort_rank @sort_rank end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
390 391 392 393 394 395 396 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 390 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 |