class Google::Apis::GamesV1::Player::Name

An object representation of the individual components of the player's name. For some players, these fields may not be present.

Attributes

family_name[RW]

The family name of this player. In some places, this is known as the last name. Corresponds to the JSON property `familyName` @return [String]

given_name[RW]

The given name of this player. In some places, this is known as the first name. Corresponds to the JSON property `givenName` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/games_v1/classes.rb, line 2080
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/games_v1/classes.rb, line 2085
def update!(**args)
  @family_name = args[:family_name] if args.key?(:family_name)
  @given_name = args[:given_name] if args.key?(:given_name)
end