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

An application category object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApplicationCategory

Returns a new instance of ApplicationCategory.



538
539
540
# File 'generated/google/apis/games_v1/classes.rb', line 538

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)


526
527
528
# File 'generated/google/apis/games_v1/classes.rb', line 526

def kind
  @kind
end

#primaryString

The primary category. Corresponds to the JSON property primary

Returns:

  • (String)


531
532
533
# File 'generated/google/apis/games_v1/classes.rb', line 531

def primary
  @primary
end

#secondaryString

The secondary category. Corresponds to the JSON property secondary

Returns:

  • (String)


536
537
538
# File 'generated/google/apis/games_v1/classes.rb', line 536

def secondary
  @secondary
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



543
544
545
546
547
# File 'generated/google/apis/games_v1/classes.rb', line 543

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