Class: Google::Apis::GamesV1::Category

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

Data related to individual game categories.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#categoryString

The category name. Corresponds to the JSON property category

Returns:

  • (String)


590
591
592
# File 'generated/google/apis/games_v1/classes.rb', line 590

def category
  @category
end

#experience_pointsFixnum

Experience points earned in this category. Corresponds to the JSON property experiencePoints

Returns:

  • (Fixnum)


595
596
597
# File 'generated/google/apis/games_v1/classes.rb', line 595

def experience_points
  @experience_points
end

#kindString

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

Returns:

  • (String)


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