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.
570 571 572 |
# File 'lib/google/apis/games_v1/classes.rb', line 570 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
563 564 565 |
# File 'lib/google/apis/games_v1/classes.rb', line 563 def application_id @application_id end |
#player_id ⇒ String
The player identifier for the application.
Corresponds to the JSON property playerId
568 569 570 |
# File 'lib/google/apis/games_v1/classes.rb', line 568 def player_id @player_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
575 576 577 578 |
# File 'lib/google/apis/games_v1/classes.rb', line 575 def update!(**args) @application_id = args[:application_id] if args.key?(:application_id) @player_id = args[:player_id] if args.key?(:player_id) end |