Class: Google::Apis::GamesV1::AnonymousPlayer
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GamesV1::AnonymousPlayer
 
- 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
- 
  
    
      #avatar_image_url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The base URL for the image to display for the anonymous player. 
- 
  
    
      #display_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name to display for the anonymous player. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Uniquely identifies the type of this resource. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AnonymousPlayer 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AnonymousPlayer. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_url ⇒ String
The base URL for the image to display for the anonymous player.
Corresponds to the JSON property avatarImageUrl
| 496 497 498 | # File 'generated/google/apis/games_v1/classes.rb', line 496 def avatar_image_url @avatar_image_url end | 
#display_name ⇒ String
The name to display for the anonymous player.
Corresponds to the JSON property displayName
| 501 502 503 | # File 'generated/google/apis/games_v1/classes.rb', line 501 def display_name @display_name end | 
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#anonymousPlayer.
Corresponds to the JSON property kind
| 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 |