Class: Google::Apis::GamesV1::ScopedPlayerIds

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

Scoped player identifiers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ScopedPlayerIds

Returns a new instance of ScopedPlayerIds.



2651
2652
2653
# File 'lib/google/apis/games_v1/classes.rb', line 2651

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

Instance Attribute Details

#developer_player_keyString

Identifier of the player across all games of the given developer. Every player has the same developer_player_key in all games of one developer. Developer player key changes for the game if the game is transferred to another developer. Note that game_player_id will stay unchanged. Corresponds to the JSON property developerPlayerKey

Returns:

  • (String)


2643
2644
2645
# File 'lib/google/apis/games_v1/classes.rb', line 2643

def developer_player_key
  @developer_player_key
end

#game_player_idString

Game-scoped player identifier. This is the same id that is returned in GetPlayer game_player_id field. Corresponds to the JSON property gamePlayerId

Returns:

  • (String)


2649
2650
2651
# File 'lib/google/apis/games_v1/classes.rb', line 2649

def game_player_id
  @game_player_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2656
2657
2658
2659
# File 'lib/google/apis/games_v1/classes.rb', line 2656

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