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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/games_v1/classes.rb,
lib/google/apis/games_v1/representations.rb,
lib/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.



628
629
630
# File 'lib/google/apis/games_v1/classes.rb', line 628

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#categoryString

The category name. Corresponds to the JSON property category

Returns:

  • (String)


615
616
617
# File 'lib/google/apis/games_v1/classes.rb', line 615

def category
  @category
end

#experience_pointsFixnum

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

Returns:

  • (Fixnum)


620
621
622
# File 'lib/google/apis/games_v1/classes.rb', line 620

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)


626
627
628
# File 'lib/google/apis/games_v1/classes.rb', line 626

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



633
634
635
636
637
# File 'lib/google/apis/games_v1/classes.rb', line 633

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