Class: Google::Apis::GamesV1::ApplicationPlayerId

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

Primary scoped player identifier for an application.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idString

The application that this player identifier is for. Corresponds to the JSON property applicationId

Returns:

  • (String)


557
558
559
# File 'lib/google/apis/games_v1/classes.rb', line 557

def application_id
  @application_id
end

#player_idString

The player identifier for the application. Corresponds to the JSON property playerId

Returns:

  • (String)


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