Class: Google::Apis::GamesV1::GamesAchievementIncrement

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 the payload to request to increment an achievement.

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

Returns a new instance of GamesAchievementIncrement.


1145
1146
1147
# File 'generated/google/apis/games_v1/classes.rb', line 1145

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)

1133
1134
1135
# File 'generated/google/apis/games_v1/classes.rb', line 1133

def kind
  @kind
end

#request_idString

The requestId associated with an increment to an achievement. Corresponds to the JSON property requestId

Returns:

  • (String)

1138
1139
1140
# File 'generated/google/apis/games_v1/classes.rb', line 1138

def request_id
  @request_id
end

#stepsFixnum

The number of steps to be incremented. Corresponds to the JSON property steps

Returns:

  • (Fixnum)

1143
1144
1145
# File 'generated/google/apis/games_v1/classes.rb', line 1143

def steps
  @steps
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1150
1151
1152
1153
1154
# File 'generated/google/apis/games_v1/classes.rb', line 1150

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @request_id = args[:request_id] if args.key?(:request_id)
  @steps = args[:steps] if args.key?(:steps)
end