class Google::Apis::GamesV1::UpdateAchievementResponse
An updated achievement.
Attributes
The achievement this update is was applied to. Corresponds to the JSON property `achievementId` @return [String]
The current state of the achievement. Corresponds to the JSON property `currentState` @return [String]
The current steps recorded for this achievement if it is incremental. Corresponds to the JSON property `currentSteps` @return [Fixnum]
Uniquely identifies the type of this resource. Value is always the fixed string `games#achievementUpdateResponse`. Corresponds to the JSON property `kind` @return [String]
Whether this achievement was newly unlocked (that is, whether the unlock request for the achievement was the first for the player). Corresponds to the JSON property `newlyUnlocked` @return [Boolean]
Whether this achievement was newly unlocked (that is, whether the unlock request for the achievement was the first for the player). Corresponds to the JSON property `newlyUnlocked` @return [Boolean]
Whether the requested updates actually affected the achievement. Corresponds to the JSON property `updateOccurred` @return [Boolean]
Whether the requested updates actually affected the achievement. Corresponds to the JSON property `updateOccurred` @return [Boolean]
Public Class Methods
# File lib/google/apis/games_v1/classes.rb, line 410 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/games_v1/classes.rb, line 415 def update!(**args) @achievement_id = args[:achievement_id] if args.key?(:achievement_id) @current_state = args[:current_state] if args.key?(:current_state) @current_steps = args[:current_steps] if args.key?(:current_steps) @kind = args[:kind] if args.key?(:kind) @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked) @update_occurred = args[:update_occurred] if args.key?(:update_occurred) end