Class: Google::Apis::GamesManagementV1management::PlayerScoreResetResponse
- Inherits:
-
Object
- Object
- Google::Apis::GamesManagementV1management::PlayerScoreResetResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_management_v1management/classes.rb,
generated/google/apis/games_management_v1management/representations.rb,
generated/google/apis/games_management_v1management/representations.rb
Overview
This is a JSON template for a list of reset leaderboard entry resources.
Instance Attribute Summary collapse
-
#definition_id ⇒ String
The ID of an leaderboard for which player state has been updated.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#reset_score_time_spans ⇒ Array<String>
The time spans of the updated score.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PlayerScoreResetResponse
constructor
A new instance of PlayerScoreResetResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PlayerScoreResetResponse
Returns a new instance of PlayerScoreResetResponse.
480 481 482 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 480 def initialize(**args) update!(**args) end |
Instance Attribute Details
#definition_id ⇒ String
The ID of an leaderboard for which player state has been updated.
Corresponds to the JSON property definitionId
463 464 465 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 463 def definition_id @definition_id end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string gamesManagement#playerScoreResetResponse.
Corresponds to the JSON property kind
469 470 471 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 469 def kind @kind end |
#reset_score_time_spans ⇒ Array<String>
The time spans of the updated score. Possible values are:
- "ALL_TIME" - The score is an all-time score.
- "WEEKLY" - The score is a weekly score.
- "DAILY" - The score is a daily score.
Corresponds to the JSON property
resetScoreTimeSpans
478 479 480 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 478 def reset_score_time_spans @reset_score_time_spans end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
485 486 487 488 489 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 485 def update!(**args) @definition_id = args[:definition_id] if args.key?(:definition_id) @kind = args[:kind] if args.key?(:kind) @reset_score_time_spans = args[:reset_score_time_spans] if args.key?(:reset_score_time_spans) end |