Class: Google::Apis::GamesV1::AnonymousPlayer

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 an anonymous player

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

Returns a new instance of AnonymousPlayer



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

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

Instance Attribute Details

#avatar_image_urlString

The base URL for the image to display for the anonymous player. Corresponds to the JSON property avatarImageUrl

Returns:

  • (String)


496
497
498
# File 'generated/google/apis/games_v1/classes.rb', line 496

def avatar_image_url
  @avatar_image_url
end

#display_nameString

The name to display for the anonymous player. Corresponds to the JSON property displayName

Returns:

  • (String)


501
502
503
# File 'generated/google/apis/games_v1/classes.rb', line 501

def display_name
  @display_name
end

#kindString

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

Returns:

  • (String)


507
508
509
# File 'generated/google/apis/games_v1/classes.rb', line 507

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



514
515
516
517
518
# File 'generated/google/apis/games_v1/classes.rb', line 514

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