Class: Google::Apis::GamesV1::PlayerLevel
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GamesV1::PlayerLevel
 
- 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 1P/3P metadata about a user's level.
Instance Attribute Summary collapse
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Uniquely identifies the type of this resource. 
- 
  
    
      #level  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The level for the user. 
- 
  
    
      #max_experience_points  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The maximum experience points for this level. 
- 
  
    
      #min_experience_points  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The minimum experience points for this level. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ PlayerLevel 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of PlayerLevel. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PlayerLevel
Returns a new instance of PlayerLevel
| 2451 2452 2453 | # File 'generated/google/apis/games_v1/classes.rb', line 2451 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#playerLevel.
Corresponds to the JSON property kind
| 2434 2435 2436 | # File 'generated/google/apis/games_v1/classes.rb', line 2434 def kind @kind end | 
#level ⇒ Fixnum
The level for the user.
Corresponds to the JSON property level
| 2439 2440 2441 | # File 'generated/google/apis/games_v1/classes.rb', line 2439 def level @level end | 
#max_experience_points ⇒ Fixnum
The maximum experience points for this level.
Corresponds to the JSON property maxExperiencePoints
| 2444 2445 2446 | # File 'generated/google/apis/games_v1/classes.rb', line 2444 def max_experience_points @max_experience_points end | 
#min_experience_points ⇒ Fixnum
The minimum experience points for this level.
Corresponds to the JSON property minExperiencePoints
| 2449 2450 2451 | # File 'generated/google/apis/games_v1/classes.rb', line 2449 def min_experience_points @min_experience_points end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2456 2457 2458 2459 2460 2461 | # File 'generated/google/apis/games_v1/classes.rb', line 2456 def update!(**args) @kind = args[:kind] if args.key?(:kind) @level = args[:level] if args.key?(:level) @max_experience_points = args[:max_experience_points] if args.key?(:max_experience_points) @min_experience_points = args[:min_experience_points] if args.key?(:min_experience_points) end |