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
This is a JSON template for 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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AchievementRevealResponse
Returns a new instance of AchievementRevealResponse
213 214 215 |
# File 'generated/google/apis/games_v1/classes.rb', line 213 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. Possible values are:
- "REVEALED" - Achievement is revealed.
- "UNLOCKED" - Achievement is unlocked.
Corresponds to the JSON property
currentState
205 206 207 |
# File 'generated/google/apis/games_v1/classes.rb', line 205 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
211 212 213 |
# File 'generated/google/apis/games_v1/classes.rb', line 211 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
218 219 220 221 |
# File 'generated/google/apis/games_v1/classes.rb', line 218 def update!(**args) @current_state = args[:current_state] if args.key?(:current_state) @kind = args[:kind] if args.key?(:kind) end |