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

This is a JSON template for data related to individual game categories.

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) ⇒ Category

Returns a new instance of Category



702
703
704
# File 'generated/google/apis/games_v1/classes.rb', line 702

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

Instance Attribute Details

#categoryString

The category name. Corresponds to the JSON property category

Returns:

  • (String)


689
690
691
# File 'generated/google/apis/games_v1/classes.rb', line 689

def category
  @category
end

#experience_pointsFixnum

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

Returns:

  • (Fixnum)


694
695
696
# File 'generated/google/apis/games_v1/classes.rb', line 694

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)


700
701
702
# File 'generated/google/apis/games_v1/classes.rb', line 700

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



707
708
709
710
711
# File 'generated/google/apis/games_v1/classes.rb', line 707

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