class Google::Apis::GamesV1::PlayerAchievement

An achievement object.

Attributes

achievement_state[RW]

The state of the achievement. Corresponds to the JSON property `achievementState` @return [String]

current_steps[RW]

The current steps for an incremental achievement. Corresponds to the JSON property `currentSteps` @return [Fixnum]

experience_points[RW]

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]

formatted_current_steps_string[RW]

The current steps for an incremental achievement as a string. Corresponds to the JSON property `formattedCurrentStepsString` @return [String]

id[RW]

The ID of the achievement. Corresponds to the JSON property `id` @return [String]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string `games#playerAchievement`. Corresponds to the JSON property `kind` @return [String]

last_updated_timestamp[RW]

The timestamp of the last modification to this achievement's state. Corresponds to the JSON property `lastUpdatedTimestamp` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/games_v1/classes.rb, line 1771
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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