Class: Google::Apis::GamesV1::AchievementUpdateMultipleRequest

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

A list of achievement update requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AchievementUpdateMultipleRequest

Returns a new instance of AchievementUpdateMultipleRequest.



297
298
299
# File 'lib/google/apis/games_v1/classes.rb', line 297

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


290
291
292
# File 'lib/google/apis/games_v1/classes.rb', line 290

def kind
  @kind
end

#updatesArray<Google::Apis::GamesV1::UpdateAchievementRequest>

The individual achievement update requests. Corresponds to the JSON property updates



295
296
297
# File 'lib/google/apis/games_v1/classes.rb', line 295

def updates
  @updates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



302
303
304
305
# File 'lib/google/apis/games_v1/classes.rb', line 302

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