You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -13,6 +15,16 @@ class AchievementCompletionResponseAchievement
13
15
# @return [DateTime] The date and time the achievement was completed, in ISO 8601 format. Null if the
14
16
# achievement has not been completed.
15
17
attr_reader:achieved_at
18
+
# @return [Integer] The number of users who have completed this achievement.
19
+
attr_reader:completions
20
+
# @return [Float] The percentage of all users who have completed this achievement.
21
+
attr_reader:rarity
22
+
# @return [Array<TrophyApiClient::AchievementWithStatsResponseUserAttributesItem>] User attribute filters that must be met for this achievement to be completed.
23
+
# Only present if the achievement has user attribute filters configured.
24
+
attr_reader:user_attributes
25
+
# @return [TrophyApiClient::AchievementWithStatsResponseEventAttribute] Event attribute filter that must be met for this achievement to be completed.
26
+
# Only present if the achievement has an event filter configured.
27
+
attr_reader:event_attribute
16
28
# @return [String] The unique ID of the achievement.
17
29
attr_reader:id
18
30
# @return [String] The name of this achievement.
@@ -49,6 +61,12 @@ class AchievementCompletionResponseAchievement
49
61
# @param current_streak [TrophyApiClient::MetricEventStreakResponse] The user's current streak for the metric, if the metric has streaks enabled.
50
62
# @param achieved_at [DateTime] The date and time the achievement was completed, in ISO 8601 format. Null if the
51
63
# achievement has not been completed.
64
+
# @param completions [Integer] The number of users who have completed this achievement.
65
+
# @param rarity [Float] The percentage of all users who have completed this achievement.
66
+
# @param user_attributes [Array<TrophyApiClient::AchievementWithStatsResponseUserAttributesItem>] User attribute filters that must be met for this achievement to be completed.
67
+
# Only present if the achievement has user attribute filters configured.
68
+
# @param event_attribute [TrophyApiClient::AchievementWithStatsResponseEventAttribute] Event attribute filter that must be met for this achievement to be completed.
69
+
# Only present if the achievement has an event filter configured.
52
70
# @param id [String] The unique ID of the achievement.
53
71
# @param name [String] The name of this achievement.
54
72
# @param trigger [TrophyApiClient::AchievementResponseTrigger] The trigger of the achievement.
@@ -66,10 +84,14 @@ class AchievementCompletionResponseAchievement
66
84
# trigger = 'metric')
67
85
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
162
208
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
163
209
obj.trigger.is_a?(TrophyApiClient::AchievementResponseTrigger) != false || raise("Passed value for field obj.trigger is not the expected type, validation failed.")
0 commit comments