class Google::Apis::GamesV1::PlayerAchievement
An achievement object.
Attributes
The state of the achievement. Corresponds to the JSON property `achievementState` @return [String]
The current steps for an incremental achievement. Corresponds to the JSON property `currentSteps` @return [Fixnum]
Experience points earned for the achievement. This field is absent for achievements that have not yet been unlocked and 0 for achievements that have been unlocked by testers but that are unpublished. Corresponds to the JSON property `experiencePoints` @return [Fixnum]
The current steps for an incremental achievement as a string. Corresponds to the JSON property `formattedCurrentStepsString` @return [String]
The ID of the achievement. Corresponds to the JSON property `id` @return [String]
Uniquely identifies the type of this resource. Value is always the fixed string `games#playerAchievement`. Corresponds to the JSON property `kind` @return [String]
The timestamp of the last modification to this achievement's state. Corresponds to the JSON property `lastUpdatedTimestamp` @return [Fixnum]
Public Class Methods
# File lib/google/apis/games_v1/classes.rb, line 1771 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/games_v1/classes.rb, line 1776 def update!(**args) @achievement_state = args[:achievement_state] if args.key?(:achievement_state) @current_steps = args[:current_steps] if args.key?(:current_steps) @experience_points = args[:experience_points] if args.key?(:experience_points) @formatted_current_steps_string = args[:formatted_current_steps_string] if args.key?(:formatted_current_steps_string) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @last_updated_timestamp = args[:last_updated_timestamp] if args.key?(:last_updated_timestamp) end