Class: Google::Apis::GamesV1::AchievementUpdateMultipleResponse

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

This is a JSON template for an achievement unlock response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AchievementUpdateMultipleResponse

Returns a new instance of AchievementUpdateMultipleResponse.



327
328
329
# File 'generated/google/apis/games_v1/classes.rb', line 327

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


320
321
322
# File 'generated/google/apis/games_v1/classes.rb', line 320

def kind
  @kind
end

#updated_achievementsArray<Google::Apis::GamesV1::UpdateAchievementResponse>

The updated state of the achievements. Corresponds to the JSON property updatedAchievements



325
326
327
# File 'generated/google/apis/games_v1/classes.rb', line 325

def updated_achievements
  @updated_achievements
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



332
333
334
335
# File 'generated/google/apis/games_v1/classes.rb', line 332

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @updated_achievements = args[:updated_achievements] if args.key?(:updated_achievements)
end