Class: Google::Apis::GamesV1::ApplicationCategory
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::ApplicationCategory
- 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 application category object.
Instance Attribute Summary collapse
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#primary ⇒ String
The primary category.
-
#secondary ⇒ String
The secondary category.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApplicationCategory
constructor
A new instance of ApplicationCategory.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ApplicationCategory
Returns a new instance of ApplicationCategory
636 637 638 |
# File 'generated/google/apis/games_v1/classes.rb', line 636 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#applicationCategory.
Corresponds to the JSON property kind
624 625 626 |
# File 'generated/google/apis/games_v1/classes.rb', line 624 def kind @kind end |
#primary ⇒ String
The primary category.
Corresponds to the JSON property primary
629 630 631 |
# File 'generated/google/apis/games_v1/classes.rb', line 629 def primary @primary end |
#secondary ⇒ String
The secondary category.
Corresponds to the JSON property secondary
634 635 636 |
# File 'generated/google/apis/games_v1/classes.rb', line 634 def secondary @secondary end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
641 642 643 644 645 |
# File 'generated/google/apis/games_v1/classes.rb', line 641 def update!(**args) @kind = args[:kind] if args.key?(:kind) @primary = args[:primary] if args.key?(:primary) @secondary = args[:secondary] if args.key?(:secondary) end |