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
This is a JSON template for 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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AchievementResetResponse
Returns a new instance of AchievementResetResponse
108 109 110 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 108 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
89 90 91 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 89 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
94 95 96 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 94 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
100 101 102 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 100 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
105 106 107 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 105 def update_occurred @update_occurred end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
113 114 115 116 117 118 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 113 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 |