Class: Google::Apis::GamesManagementV1management::AchievementResetResponse
- Inherits:
-
Object
- Object
- Google::Apis::GamesManagementV1management::AchievementResetResponse
- 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
An achievement reset response.
Instance Attribute Summary collapse
-
#current_state ⇒ String
The current state of the achievement.
-
#definition_id ⇒ String
The ID of an achievement for which player state has been updated.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#update_occurred ⇒ Boolean
(also: #update_occurred?)
Flag to indicate if the requested update actually occurred.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AchievementResetResponse
constructor
A new instance of AchievementResetResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AchievementResetResponse
Returns a new instance of AchievementResetResponse.
106 107 108 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 106 def initialize(**args) update!(**args) end |
Instance Attribute Details
#current_state ⇒ String
The current state of the achievement. This is the same as the initial state of
the achievement. Possible values are: - "HIDDEN
"- Achievement is hidden. - "
REVEALED
" - Achievement is revealed. - "UNLOCKED
" - Achievement is unlocked.
Corresponds to the JSON property currentState
87 88 89 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 87 def current_state @current_state end |
#definition_id ⇒ String
The ID of an achievement for which player state has been updated.
Corresponds to the JSON property definitionId
92 93 94 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 92 def definition_id @definition_id end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string gamesManagement#achievementResetResponse
.
Corresponds to the JSON property kind
98 99 100 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 98 def kind @kind end |
#update_occurred ⇒ Boolean Also known as: update_occurred?
Flag to indicate if the requested update actually occurred.
Corresponds to the JSON property updateOccurred
103 104 105 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 103 def update_occurred @update_occurred end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
111 112 113 114 115 116 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 111 def update!(**args) @current_state = args[:current_state] if args.key?(:current_state) @definition_id = args[:definition_id] if args.key?(:definition_id) @kind = args[:kind] if args.key?(:kind) @update_occurred = args[:update_occurred] if args.key?(:update_occurred) end |