Class: Google::Apis::GamesV1::Player::Name
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::Player::Name
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_v1/classes.rb,
generated/google/apis/games_v1/representations.rb,
generated/google/apis/games_v1/representations.rb
Overview
A representation of the individual components of the name.
Instance Attribute Summary collapse
-
#family_name ⇒ String
The family name of this player.
-
#given_name ⇒ String
The given name of this player.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Name
constructor
A new instance of Name.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Name
Returns a new instance of Name.
1747 1748 1749 |
# File 'generated/google/apis/games_v1/classes.rb', line 1747 def initialize(**args) update!(**args) end |
Instance Attribute Details
#family_name ⇒ String
The family name of this player. In some places, this is known as the last name.
Corresponds to the JSON property familyName
1740 1741 1742 |
# File 'generated/google/apis/games_v1/classes.rb', line 1740 def family_name @family_name end |
#given_name ⇒ String
The given name of this player. In some places, this is known as the first name.
Corresponds to the JSON property givenName
1745 1746 1747 |
# File 'generated/google/apis/games_v1/classes.rb', line 1745 def given_name @given_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1752 1753 1754 1755 |
# File 'generated/google/apis/games_v1/classes.rb', line 1752 def update!(**args) @family_name = args[:family_name] if args.key?(:family_name) @given_name = args[:given_name] if args.key?(:given_name) end |