Class: Google::Apis::GamesV1::AchievementRevealResponse
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::AchievementRevealResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_v1/classes.rb,
generated/google/apis/games_v1/representations.rb,
generated/google/apis/games_v1/representations.rb
Overview
An achievement reveal response
Instance Attribute Summary collapse
-
#current_state ⇒ String
The current state of the achievement for which a reveal was attempted.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AchievementRevealResponse
constructor
A new instance of AchievementRevealResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AchievementRevealResponse
Returns a new instance of AchievementRevealResponse.
203 204 205 |
# File 'generated/google/apis/games_v1/classes.rb', line 203 def initialize(**args) update!(**args) end |
Instance Attribute Details
#current_state ⇒ String
The current state of the achievement for which a reveal was attempted. This
might be UNLOCKED
if the achievement was already unlocked.
Corresponds to the JSON property currentState
195 196 197 |
# File 'generated/google/apis/games_v1/classes.rb', line 195 def current_state @current_state end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#achievementRevealResponse
.
Corresponds to the JSON property kind
201 202 203 |
# File 'generated/google/apis/games_v1/classes.rb', line 201 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
208 209 210 211 |
# File 'generated/google/apis/games_v1/classes.rb', line 208 def update!(**args) @current_state = args[:current_state] if args.key?(:current_state) @kind = args[:kind] if args.key?(:kind) end |