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

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

This is a JSON template for a leaderboard configuration detail.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LeaderboardConfigurationDetail

Returns a new instance of LeaderboardConfigurationDetail



401
402
403
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 401

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)


378
379
380
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 378

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)


384
385
386
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 384

def kind
  @kind
end

#nameGoogle::Apis::GamesConfigurationV1configuration::LocalizedStringBundle

This is a JSON template for a localized string bundle resource. Corresponds to the JSON property name



389
390
391
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 389

def name
  @name
end

#score_formatGoogle::Apis::GamesConfigurationV1configuration::GamesNumberFormatConfiguration

This is a JSON template for a number format resource. Corresponds to the JSON property scoreFormat



394
395
396
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 394

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)


399
400
401
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 399

def sort_rank
  @sort_rank
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



406
407
408
409
410
411
412
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 406

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