Class: Google::Apis::GamesV1::ScopedPlayerIds
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::ScopedPlayerIds
- 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
-
#developer_player_key ⇒ String
Identifier of the player across all games of the given developer.
-
#game_player_id ⇒ String
Game-scoped player identifier.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ScopedPlayerIds
constructor
A new instance of ScopedPlayerIds.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ScopedPlayerIds
Returns a new instance of ScopedPlayerIds.
2708 2709 2710 |
# File 'lib/google/apis/games_v1/classes.rb', line 2708 def initialize(**args) update!(**args) end |
Instance Attribute Details
#developer_player_key ⇒ String
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
2700 2701 2702 |
# File 'lib/google/apis/games_v1/classes.rb', line 2700 def developer_player_key @developer_player_key end |
#game_player_id ⇒ String
Game-scoped player identifier. This is the same id that is returned in
GetPlayer game_player_id field.
Corresponds to the JSON property gamePlayerId
2706 2707 2708 |
# File 'lib/google/apis/games_v1/classes.rb', line 2706 def game_player_id @game_player_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2713 2714 2715 2716 |
# File 'lib/google/apis/games_v1/classes.rb', line 2713 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 |