Class: Google::Apis::GamesManagementV1management::ProfileSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/games_management_v1management/classes.rb,
generated/google/apis/games_management_v1management/representations.rb,
generated/google/apis/games_management_v1management/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



503
504
505
# File 'generated/google/apis/games_management_v1management/classes.rb', line 503

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


494
495
496
# File 'generated/google/apis/games_management_v1management/classes.rb', line 494

def kind
  @kind
end

#profile_visibleBoolean Also known as: profile_visible?

The player's current profile visibility. This field is visible to both 1P and 3P APIs. Corresponds to the JSON property profileVisible

Returns:

  • (Boolean)


500
501
502
# File 'generated/google/apis/games_management_v1management/classes.rb', line 500

def profile_visible
  @profile_visible
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



508
509
510
511
# File 'generated/google/apis/games_management_v1management/classes.rb', line 508

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