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

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

Profile settings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProfileSettings

Returns a new instance of ProfileSettings.



2454
2455
2456
# File 'lib/google/apis/games_v1/classes.rb', line 2454

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

Instance Attribute Details

#friends_list_visibilityString

Corresponds to the JSON property friendsListVisibility

Returns:

  • (String)


2440
2441
2442
# File 'lib/google/apis/games_v1/classes.rb', line 2440

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)


2446
2447
2448
# File 'lib/google/apis/games_v1/classes.rb', line 2446

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)


2451
2452
2453
# File 'lib/google/apis/games_v1/classes.rb', line 2451

def profile_visible
  @profile_visible
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2459
2460
2461
2462
2463
# File 'lib/google/apis/games_v1/classes.rb', line 2459

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