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

This is a JSON template for profile settings

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) ⇒ ProfileSettings

Returns a new instance of ProfileSettings.



2683
2684
2685
# File 'generated/google/apis/games_v1/classes.rb', line 2683

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

Instance Attribute Details

#friends_list_visibilityString

Whether the player's friends list is visible to the game. Corresponds to the JSON property friendsListVisibility

Returns:

  • (String)


2669
2670
2671
# File 'generated/google/apis/games_v1/classes.rb', line 2669

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)


2675
2676
2677
# File 'generated/google/apis/games_v1/classes.rb', line 2675

def kind
  @kind
end

#profile_visibleBoolean Also known as: profile_visible?

Corresponds to the JSON property profileVisible

Returns:

  • (Boolean)


2680
2681
2682
# File 'generated/google/apis/games_v1/classes.rb', line 2680

def profile_visible
  @profile_visible
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2688
2689
2690
2691
2692
# File 'generated/google/apis/games_v1/classes.rb', line 2688

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