Class: Google::Apis::GamesManagementV1management::HiddenPlayer

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

The HiddenPlayer resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HiddenPlayer

Returns a new instance of HiddenPlayer.



233
234
235
# File 'generated/google/apis/games_management_v1management/classes.rb', line 233

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

Instance Attribute Details

#hidden_time_millisFixnum

Output only. The time this player was hidden. Corresponds to the JSON property hiddenTimeMillis

Returns:

  • (Fixnum)


220
221
222
# File 'generated/google/apis/games_management_v1management/classes.rb', line 220

def hidden_time_millis
  @hidden_time_millis
end

#kindString

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

Returns:

  • (String)


226
227
228
# File 'generated/google/apis/games_management_v1management/classes.rb', line 226

def kind
  @kind
end

#playerGoogle::Apis::GamesManagementV1management::Player

A Player resource. Corresponds to the JSON property player



231
232
233
# File 'generated/google/apis/games_management_v1management/classes.rb', line 231

def player
  @player
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



238
239
240
241
242
# File 'generated/google/apis/games_management_v1management/classes.rb', line 238

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