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

This is a JSON template for the HiddenPlayer resource.

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

Returns a new instance of HiddenPlayer



263
264
265
# File 'generated/google/apis/games_management_v1management/classes.rb', line 263

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

Instance Attribute Details

#hidden_time_millisFixnum

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

Returns:

  • (Fixnum)


250
251
252
# File 'generated/google/apis/games_management_v1management/classes.rb', line 250

def hidden_time_millis
  @hidden_time_millis
end

#kindString

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

Returns:

  • (String)


256
257
258
# File 'generated/google/apis/games_management_v1management/classes.rb', line 256

def kind
  @kind
end

#playerGoogle::Apis::GamesManagementV1management::Player

This is a JSON template for a Player resource. Corresponds to the JSON property player



261
262
263
# File 'generated/google/apis/games_management_v1management/classes.rb', line 261

def player
  @player
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



268
269
270
271
272
# File 'generated/google/apis/games_management_v1management/classes.rb', line 268

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