Class: Google::Apis::GamesV1::Player::Name

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

A representation of the individual components of the name.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Name

Returns a new instance of Name.



1874
1875
1876
# File 'lib/google/apis/games_v1/classes.rb', line 1874

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)


1867
1868
1869
# File 'lib/google/apis/games_v1/classes.rb', line 1867

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)


1872
1873
1874
# File 'lib/google/apis/games_v1/classes.rb', line 1872

def given_name
  @given_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1879
1880
1881
1882
# File 'lib/google/apis/games_v1/classes.rb', line 1879

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