Class: Google::Apis::GamesV1::ProfileSettings

Inherits:
Object
  • Object
show all
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

Profile settings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProfileSettings

Returns a new instance of ProfileSettings.



2327
2328
2329
# File 'generated/google/apis/games_v1/classes.rb', line 2327

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

Instance Attribute Details

#friends_list_visibilityString

Corresponds to the JSON property friendsListVisibility

Returns:

  • (String)


2313
2314
2315
# File 'generated/google/apis/games_v1/classes.rb', line 2313

def friends_list_visibility
  @friends_list_visibility
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings. Corresponds to the JSON property kind

Returns:

  • (String)


2319
2320
2321
# File 'generated/google/apis/games_v1/classes.rb', line 2319

def kind
  @kind
end

#profile_visibleBoolean Also known as: profile_visible?

Whether the player's profile is visible to the currently signed in player. Corresponds to the JSON property profileVisible

Returns:

  • (Boolean)


2324
2325
2326
# File 'generated/google/apis/games_v1/classes.rb', line 2324

def profile_visible
  @profile_visible
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2332
2333
2334
2335
2336
# File 'generated/google/apis/games_v1/classes.rb', line 2332

def update!(**args)
  @friends_list_visibility = args[:friends_list_visibility] if args.key?(:friends_list_visibility)
  @kind = args[:kind] if args.key?(:kind)
  @profile_visible = args[:profile_visible] if args.key?(:profile_visible)
end