Class: Google::Apis::GamesV1::ApplicationCategory

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#applicationCategory. Corresponds to the JSON property kind

Returns:

  • (String)

624
625
626
# File 'generated/google/apis/games_v1/classes.rb', line 624

def kind
  @kind
end

#primaryString

The primary category. Corresponds to the JSON property primary

Returns:

  • (String)

629
630
631
# File 'generated/google/apis/games_v1/classes.rb', line 629

def primary
  @primary
end

#secondaryString

The secondary category. Corresponds to the JSON property secondary

Returns:

  • (String)

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