Class: Google::Apis::GamesV1::UpdateAchievementRequest

Inherits:
Object
  • Object
show all
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

A request to update an achievement.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateAchievementRequest

Returns a new instance of UpdateAchievementRequest.



358
359
360
# File 'generated/google/apis/games_v1/classes.rb', line 358

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

Instance Attribute Details

#achievement_idString

The achievement this update is being applied to. Corresponds to the JSON property achievementId

Returns:

  • (String)


335
336
337
# File 'generated/google/apis/games_v1/classes.rb', line 335

def achievement_id
  @achievement_id
end

#increment_payloadGoogle::Apis::GamesV1::GamesAchievementIncrement

The payload to request to increment an achievement. Corresponds to the JSON property incrementPayload



340
341
342
# File 'generated/google/apis/games_v1/classes.rb', line 340

def increment_payload
  @increment_payload
end

#kindString

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

Returns:

  • (String)


346
347
348
# File 'generated/google/apis/games_v1/classes.rb', line 346

def kind
  @kind
end

#set_steps_at_least_payloadGoogle::Apis::GamesV1::GamesAchievementSetStepsAtLeast

The payload to request to increment an achievement. Corresponds to the JSON property setStepsAtLeastPayload



351
352
353
# File 'generated/google/apis/games_v1/classes.rb', line 351

def set_steps_at_least_payload
  @set_steps_at_least_payload
end

#update_typeString

The type of update being applied. Corresponds to the JSON property updateType

Returns:

  • (String)


356
357
358
# File 'generated/google/apis/games_v1/classes.rb', line 356

def update_type
  @update_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



363
364
365
366
367
368
369
# File 'generated/google/apis/games_v1/classes.rb', line 363

def update!(**args)
  @achievement_id = args[:achievement_id] if args.key?(:achievement_id)
  @increment_payload = args[:increment_payload] if args.key?(:increment_payload)
  @kind = args[:kind] if args.key?(:kind)
  @set_steps_at_least_payload = args[:set_steps_at_least_payload] if args.key?(:set_steps_at_least_payload)
  @update_type = args[:update_type] if args.key?(:update_type)
end