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
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.
Constructor Details
#initialize(**args) ⇒ Category
Returns a new instance of Category.
603 604 605 |
# File 'generated/google/apis/games_v1/classes.rb', line 603 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category ⇒ String
The category name.
Corresponds to the JSON property category
590 591 592 |
# File 'generated/google/apis/games_v1/classes.rb', line 590 def category @category end |
#experience_points ⇒ Fixnum
Experience points earned in this category.
Corresponds to the JSON property experiencePoints
595 596 597 |
# File 'generated/google/apis/games_v1/classes.rb', line 595 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
601 602 603 |
# File 'generated/google/apis/games_v1/classes.rb', line 601 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
608 609 610 611 612 |
# File 'generated/google/apis/games_v1/classes.rb', line 608 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 |