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

A leaderboard configuration detail.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_urlString

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

Returns:

  • (String)


362
363
364
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 362

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)


368
369
370
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 368

def kind
  @kind
end

#nameGoogle::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_formatGoogle::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_rankFixnum

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

Returns:

  • (Fixnum)


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