Class: Google::Apis::GamesManagementV1management::Player::Name

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/games_management_v1management/classes.rb,
generated/google/apis/games_management_v1management/representations.rb,
generated/google/apis/games_management_v1management/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Name

Returns a new instance of Name



412
413
414
# File 'generated/google/apis/games_management_v1management/classes.rb', line 412

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#family_nameString

The family name of this player. In some places, this is known as the last name. Corresponds to the JSON property familyName

Returns:

  • (String)


405
406
407
# File 'generated/google/apis/games_management_v1management/classes.rb', line 405

def family_name
  @family_name
end

#given_nameString

The given name of this player. In some places, this is known as the first name. Corresponds to the JSON property givenName

Returns:

  • (String)


410
411
412
# File 'generated/google/apis/games_management_v1management/classes.rb', line 410

def given_name
  @given_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



417
418
419
420
# File 'generated/google/apis/games_management_v1management/classes.rb', line 417

def update!(**args)
  @family_name = args[:family_name] if args.key?(:family_name)
  @given_name = args[:given_name] if args.key?(:given_name)
end