Class: Google::Apis::GamesManagementV1management::ScoresResetMultipleForAllRequest

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

Overview

This is a JSON template for multiple scores reset all request.

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) ⇒ ScoresResetMultipleForAllRequest

Returns a new instance of ScoresResetMultipleForAllRequest.


555
556
557
# File 'generated/google/apis/games_management_v1management/classes.rb', line 555

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)

548
549
550
# File 'generated/google/apis/games_management_v1management/classes.rb', line 548

def kind
  @kind
end

#leaderboard_idsArray<String>

The IDs of leaderboards to reset. Corresponds to the JSON property leaderboard_ids

Returns:

  • (Array<String>)

553
554
555
# File 'generated/google/apis/games_management_v1management/classes.rb', line 553

def leaderboard_ids
  @leaderboard_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


560
561
562
563
# File 'generated/google/apis/games_management_v1management/classes.rb', line 560

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