Class: Google::Apis::GamesV1::AchievementSetStepsAtLeastResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/games_v1/classes.rb,
lib/google/apis/games_v1/representations.rb,
lib/google/apis/games_v1/representations.rb

Overview

An achievement set steps at least response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AchievementSetStepsAtLeastResponse

Returns a new instance of AchievementSetStepsAtLeastResponse.



242
243
244
# File 'lib/google/apis/games_v1/classes.rb', line 242

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#current_stepsFixnum

The current steps recorded for this incremental achievement. Corresponds to the JSON property currentSteps

Returns:

  • (Fixnum)


227
228
229
# File 'lib/google/apis/games_v1/classes.rb', line 227

def current_steps
  @current_steps
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#achievementSetStepsAtLeastResponse. Corresponds to the JSON property kind

Returns:

  • (String)


233
234
235
# File 'lib/google/apis/games_v1/classes.rb', line 233

def kind
  @kind
end

#newly_unlockedBoolean Also known as: newly_unlocked?

Whether the current steps for the achievement has reached the number of steps required to unlock. Corresponds to the JSON property newlyUnlocked

Returns:

  • (Boolean)


239
240
241
# File 'lib/google/apis/games_v1/classes.rb', line 239

def newly_unlocked
  @newly_unlocked
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



247
248
249
250
251
# File 'lib/google/apis/games_v1/classes.rb', line 247

def update!(**args)
  @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)
end