Class: Google::Apis::GamesV1::ApplicationPlayerId
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::ApplicationPlayerId
- 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
Primary scoped player identifier for an application.
Instance Attribute Summary collapse
-
#application_id ⇒ String
The application that this player identifier is for.
-
#player_id ⇒ String
The player identifier for the application.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApplicationPlayerId
constructor
A new instance of ApplicationPlayerId.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ApplicationPlayerId
Returns a new instance of ApplicationPlayerId.
564 565 566 |
# File 'lib/google/apis/games_v1/classes.rb', line 564 def initialize(**args) update!(**args) end |
Instance Attribute Details
#application_id ⇒ String
The application that this player identifier is for.
Corresponds to the JSON property applicationId
557 558 559 |
# File 'lib/google/apis/games_v1/classes.rb', line 557 def application_id @application_id end |
#player_id ⇒ String
The player identifier for the application.
Corresponds to the JSON property playerId
562 563 564 |
# File 'lib/google/apis/games_v1/classes.rb', line 562 def player_id @player_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
569 570 571 572 |
# File 'lib/google/apis/games_v1/classes.rb', line 569 def update!(**args) @application_id = args[:application_id] if args.key?(:application_id) @player_id = args[:player_id] if args.key?(:player_id) end |