Class: Google::Apis::GamesV1::GamesAchievementIncrement
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::GamesAchievementIncrement
- 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
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#request_id ⇒ Fixnum
The requestId associated with an increment to an achievement.
-
#steps ⇒ Fixnum
The number of steps to be incremented.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GamesAchievementIncrement
constructor
A new instance of GamesAchievementIncrement.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GamesAchievementIncrement
Returns a new instance of GamesAchievementIncrement.
1096 1097 1098 |
# File 'lib/google/apis/games_v1/classes.rb', line 1096 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#GamesAchievementIncrement.
Corresponds to the JSON property kind
1084 1085 1086 |
# File 'lib/google/apis/games_v1/classes.rb', line 1084 def kind @kind end |
#request_id ⇒ Fixnum
The requestId associated with an increment to an achievement.
Corresponds to the JSON property requestId
1089 1090 1091 |
# File 'lib/google/apis/games_v1/classes.rb', line 1089 def request_id @request_id end |
#steps ⇒ Fixnum
The number of steps to be incremented.
Corresponds to the JSON property steps
1094 1095 1096 |
# File 'lib/google/apis/games_v1/classes.rb', line 1094 def steps @steps end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1101 1102 1103 1104 1105 |
# File 'lib/google/apis/games_v1/classes.rb', line 1101 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 |