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

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

The payload to request to increment an achievement.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GamesAchievementIncrement

Returns a new instance of GamesAchievementIncrement.



1169
1170
1171
# File 'lib/google/apis/games_v1/classes.rb', line 1169

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)


1157
1158
1159
# File 'lib/google/apis/games_v1/classes.rb', line 1157

def kind
  @kind
end

#request_idFixnum

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

Returns:

  • (Fixnum)


1162
1163
1164
# File 'lib/google/apis/games_v1/classes.rb', line 1162

def request_id
  @request_id
end

#stepsFixnum

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

Returns:

  • (Fixnum)


1167
1168
1169
# File 'lib/google/apis/games_v1/classes.rb', line 1167

def steps
  @steps
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1174
1175
1176
1177
1178
# File 'lib/google/apis/games_v1/classes.rb', line 1174

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