Class: Google::Apis::GamesV1::Category
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GamesV1::Category
 
- 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 data related to individual game categories.
Instance Attribute Summary collapse
- 
  
    
      #category  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The category name. 
- 
  
    
      #experience_points  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Experience points earned in this category. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Uniquely identifies the type of this resource. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Category 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Category. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Category
Returns a new instance of Category
| 702 703 704 | # File 'generated/google/apis/games_v1/classes.rb', line 702 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#category ⇒ String
The category name.
Corresponds to the JSON property category
| 689 690 691 | # File 'generated/google/apis/games_v1/classes.rb', line 689 def category @category end | 
#experience_points ⇒ Fixnum
Experience points earned in this category.
Corresponds to the JSON property experiencePoints
| 694 695 696 | # File 'generated/google/apis/games_v1/classes.rb', line 694 def experience_points @experience_points end | 
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#category.
Corresponds to the JSON property kind
| 700 701 702 | # File 'generated/google/apis/games_v1/classes.rb', line 700 def kind @kind end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 707 708 709 710 711 | # File 'generated/google/apis/games_v1/classes.rb', line 707 def update!(**args) @category = args[:category] if args.key?(:category) @experience_points = args[:experience_points] if args.key?(:experience_points) @kind = args[:kind] if args.key?(:kind) end |