Skip to content

Commit 4adc32f

Browse files
Automatically update Ruby SDK
1 parent dde334d commit 4adc32f

10 files changed

Lines changed: 34 additions & 34 deletions

lib/gemconfig.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module TrophyApiClient
44
module Gemconfig
5-
VERSION = "1.9.1"
5+
VERSION = "1.10.0"
66
AUTHORS = ["Trophy Labs, Inc"].freeze
77
EMAIL = ""
88
SUMMARY = "Ruby library for the Trophy API."

lib/trophy_api_client/leaderboards/types/leaderboards_all_response_item.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ class LeaderboardsAllResponseItem
7676
# type. Null for one-time leaderboards.
7777
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
7878
# @return [TrophyApiClient::Leaderboards::LeaderboardsAllResponseItem]
79-
def initialize(status:, id:, name:, key:, rank_by:, breakdown_attributes:, start:, max_participants:, breakdown_attribute: OMIT,
80-
metric_key: OMIT, metric_name: OMIT, points_system_key: OMIT, points_system_name: OMIT, description: OMIT, end_: OMIT, run_unit: OMIT, run_interval: OMIT, additional_properties: nil)
79+
def initialize(status:, id:, name:, key:, rank_by:, breakdown_attributes:, start:, breakdown_attribute: OMIT,
80+
metric_key: OMIT, metric_name: OMIT, points_system_key: OMIT, points_system_name: OMIT, description: OMIT, end_: OMIT, max_participants: OMIT, run_unit: OMIT, run_interval: OMIT, additional_properties: nil)
8181
@status = status
8282
@id = id
8383
@name = name
@@ -92,7 +92,7 @@ def initialize(status:, id:, name:, key:, rank_by:, breakdown_attributes:, start
9292
@description = description if description != OMIT
9393
@start = start
9494
@end_ = end_ if end_ != OMIT
95-
@max_participants = max_participants
95+
@max_participants = max_participants if max_participants != OMIT
9696
@run_unit = run_unit if run_unit != OMIT
9797
@run_interval = run_interval if run_interval != OMIT
9898
@additional_properties = additional_properties
@@ -193,7 +193,7 @@ def self.validate_raw(obj:)
193193
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
194194
obj.start.is_a?(String) != false || raise("Passed value for field obj.start is not the expected type, validation failed.")
195195
obj.end_&.is_a?(String) != false || raise("Passed value for field obj.end_ is not the expected type, validation failed.")
196-
obj.max_participants.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
196+
obj.max_participants&.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
197197
obj.run_unit&.is_a?(TrophyApiClient::LeaderboardResponseRunUnit) != false || raise("Passed value for field obj.run_unit is not the expected type, validation failed.")
198198
obj.run_interval&.is_a?(Integer) != false || raise("Passed value for field obj.run_interval is not the expected type, validation failed.")
199199
end

lib/trophy_api_client/types/admin_leaderboard.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ class AdminLeaderboard
6161
# @param run_interval [Integer] The number of recurrence units between leaderboard runs.
6262
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
6363
# @return [TrophyApiClient::AdminLeaderboard]
64-
def initialize(id:, name:, key:, status:, rank_by:, max_participants:, start:, breakdown_attributes:,
65-
description: OMIT, metric_id: OMIT, points_system_id: OMIT, end_: OMIT, run_unit: OMIT, run_interval: OMIT, additional_properties: nil)
64+
def initialize(id:, name:, key:, status:, rank_by:, start:, breakdown_attributes:, description: OMIT, metric_id: OMIT, points_system_id: OMIT,
65+
max_participants: OMIT, end_: OMIT, run_unit: OMIT, run_interval: OMIT, additional_properties: nil)
6666
@id = id
6767
@name = name
6868
@key = key
@@ -71,7 +71,7 @@ def initialize(id:, name:, key:, status:, rank_by:, max_participants:, start:, b
7171
@rank_by = rank_by
7272
@metric_id = metric_id if metric_id != OMIT
7373
@points_system_id = points_system_id if points_system_id != OMIT
74-
@max_participants = max_participants
74+
@max_participants = max_participants if max_participants != OMIT
7575
@start = start
7676
@end_ = end_ if end_ != OMIT
7777
@breakdown_attributes = breakdown_attributes
@@ -160,7 +160,7 @@ def self.validate_raw(obj:)
160160
obj.rank_by.is_a?(TrophyApiClient::AdminLeaderboardRankBy) != false || raise("Passed value for field obj.rank_by is not the expected type, validation failed.")
161161
obj.metric_id&.is_a?(String) != false || raise("Passed value for field obj.metric_id is not the expected type, validation failed.")
162162
obj.points_system_id&.is_a?(String) != false || raise("Passed value for field obj.points_system_id is not the expected type, validation failed.")
163-
obj.max_participants.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
163+
obj.max_participants&.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
164164
obj.start.is_a?(String) != false || raise("Passed value for field obj.start is not the expected type, validation failed.")
165165
obj.end_&.is_a?(String) != false || raise("Passed value for field obj.end_ is not the expected type, validation failed.")
166166
obj.breakdown_attributes.is_a?(Array) != false || raise("Passed value for field obj.breakdown_attributes is not the expected type, validation failed.")

lib/trophy_api_client/types/leaderboard_response.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ class LeaderboardResponse
7272
# type. Null for one-time leaderboards.
7373
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
7474
# @return [TrophyApiClient::LeaderboardResponse]
75-
def initialize(id:, name:, key:, rank_by:, breakdown_attributes:, start:, max_participants:, breakdown_attribute: OMIT, metric_key: OMIT,
76-
metric_name: OMIT, points_system_key: OMIT, points_system_name: OMIT, description: OMIT, end_: OMIT, run_unit: OMIT, run_interval: OMIT, additional_properties: nil)
75+
def initialize(id:, name:, key:, rank_by:, breakdown_attributes:, start:, breakdown_attribute: OMIT, metric_key: OMIT,
76+
metric_name: OMIT, points_system_key: OMIT, points_system_name: OMIT, description: OMIT, end_: OMIT, max_participants: OMIT, run_unit: OMIT, run_interval: OMIT, additional_properties: nil)
7777
@id = id
7878
@name = name
7979
@key = key
@@ -87,7 +87,7 @@ def initialize(id:, name:, key:, rank_by:, breakdown_attributes:, start:, max_pa
8787
@description = description if description != OMIT
8888
@start = start
8989
@end_ = end_ if end_ != OMIT
90-
@max_participants = max_participants
90+
@max_participants = max_participants if max_participants != OMIT
9191
@run_unit = run_unit if run_unit != OMIT
9292
@run_interval = run_interval if run_interval != OMIT
9393
@additional_properties = additional_properties
@@ -184,7 +184,7 @@ def self.validate_raw(obj:)
184184
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
185185
obj.start.is_a?(String) != false || raise("Passed value for field obj.start is not the expected type, validation failed.")
186186
obj.end_&.is_a?(String) != false || raise("Passed value for field obj.end_ is not the expected type, validation failed.")
187-
obj.max_participants.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
187+
obj.max_participants&.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
188188
obj.run_unit&.is_a?(TrophyApiClient::LeaderboardResponseRunUnit) != false || raise("Passed value for field obj.run_unit is not the expected type, validation failed.")
189189
obj.run_interval&.is_a?(Integer) != false || raise("Passed value for field obj.run_interval is not the expected type, validation failed.")
190190
end

lib/trophy_api_client/types/leaderboard_response_with_rankings.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ class LeaderboardResponseWithRankings
7979
# type. Null for one-time leaderboards.
8080
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
8181
# @return [TrophyApiClient::LeaderboardResponseWithRankings]
82-
def initialize(status:, rankings:, id:, name:, key:, rank_by:, breakdown_attributes:, start:, max_participants:, breakdown_attribute: OMIT,
83-
metric_key: OMIT, metric_name: OMIT, points_system_key: OMIT, points_system_name: OMIT, description: OMIT, end_: OMIT, run_unit: OMIT, run_interval: OMIT, additional_properties: nil)
82+
def initialize(status:, rankings:, id:, name:, key:, rank_by:, breakdown_attributes:, start:, breakdown_attribute: OMIT,
83+
metric_key: OMIT, metric_name: OMIT, points_system_key: OMIT, points_system_name: OMIT, description: OMIT, end_: OMIT, max_participants: OMIT, run_unit: OMIT, run_interval: OMIT, additional_properties: nil)
8484
@status = status
8585
@rankings = rankings
8686
@id = id
@@ -96,7 +96,7 @@ def initialize(status:, rankings:, id:, name:, key:, rank_by:, breakdown_attribu
9696
@description = description if description != OMIT
9797
@start = start
9898
@end_ = end_ if end_ != OMIT
99-
@max_participants = max_participants
99+
@max_participants = max_participants if max_participants != OMIT
100100
@run_unit = run_unit if run_unit != OMIT
101101
@run_interval = run_interval if run_interval != OMIT
102102
@additional_properties = additional_properties
@@ -204,7 +204,7 @@ def self.validate_raw(obj:)
204204
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
205205
obj.start.is_a?(String) != false || raise("Passed value for field obj.start is not the expected type, validation failed.")
206206
obj.end_&.is_a?(String) != false || raise("Passed value for field obj.end_ is not the expected type, validation failed.")
207-
obj.max_participants.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
207+
obj.max_participants&.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
208208
obj.run_unit&.is_a?(TrophyApiClient::LeaderboardResponseRunUnit) != false || raise("Passed value for field obj.run_unit is not the expected type, validation failed.")
209209
obj.run_interval&.is_a?(Integer) != false || raise("Passed value for field obj.run_interval is not the expected type, validation failed.")
210210
end

lib/trophy_api_client/types/metric_event_leaderboard_response.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ class MetricEventLeaderboardResponse
9797
# type. Null for one-time leaderboards.
9898
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
9999
# @return [TrophyApiClient::MetricEventLeaderboardResponse]
100-
def initialize(threshold:, id:, name:, key:, rank_by:, breakdown_attributes:, start:, max_participants:, end_: OMIT, rank: OMIT, previous_rank: OMIT, breakdown_attribute_value: OMIT,
101-
breakdown_attribute_values: OMIT, breakdown_attribute: OMIT, metric_key: OMIT, metric_name: OMIT, points_system_key: OMIT, points_system_name: OMIT, description: OMIT, run_unit: OMIT, run_interval: OMIT, additional_properties: nil)
100+
def initialize(threshold:, id:, name:, key:, rank_by:, breakdown_attributes:, start:, end_: OMIT, rank: OMIT, previous_rank: OMIT, breakdown_attribute_value: OMIT,
101+
breakdown_attribute_values: OMIT, breakdown_attribute: OMIT, metric_key: OMIT, metric_name: OMIT, points_system_key: OMIT, points_system_name: OMIT, description: OMIT, max_participants: OMIT, run_unit: OMIT, run_interval: OMIT, additional_properties: nil)
102102
@end_ = end_ if end_ != OMIT
103103
@rank = rank if rank != OMIT
104104
@previous_rank = previous_rank if previous_rank != OMIT
@@ -117,7 +117,7 @@ def initialize(threshold:, id:, name:, key:, rank_by:, breakdown_attributes:, st
117117
@points_system_name = points_system_name if points_system_name != OMIT
118118
@description = description if description != OMIT
119119
@start = start
120-
@max_participants = max_participants
120+
@max_participants = max_participants if max_participants != OMIT
121121
@run_unit = run_unit if run_unit != OMIT
122122
@run_interval = run_interval if run_interval != OMIT
123123
@additional_properties = additional_properties
@@ -237,7 +237,7 @@ def self.validate_raw(obj:)
237237
obj.points_system_name&.is_a?(String) != false || raise("Passed value for field obj.points_system_name is not the expected type, validation failed.")
238238
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
239239
obj.start.is_a?(String) != false || raise("Passed value for field obj.start is not the expected type, validation failed.")
240-
obj.max_participants.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
240+
obj.max_participants&.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
241241
obj.run_unit&.is_a?(TrophyApiClient::LeaderboardResponseRunUnit) != false || raise("Passed value for field obj.run_unit is not the expected type, validation failed.")
242242
obj.run_interval&.is_a?(Integer) != false || raise("Passed value for field obj.run_interval is not the expected type, validation failed.")
243243
end

lib/trophy_api_client/types/user_leaderboard_response.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ class UserLeaderboardResponse
8282
# type. Null for one-time leaderboards.
8383
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
8484
# @return [TrophyApiClient::UserLeaderboardResponse]
85-
def initialize(id:, name:, key:, rank_by:, breakdown_attributes:, start:, max_participants:, rank: OMIT,
86-
value: OMIT, breakdown_attribute: OMIT, metric_key: OMIT, metric_name: OMIT, points_system_key: OMIT, points_system_name: OMIT, description: OMIT, end_: OMIT, run_unit: OMIT, run_interval: OMIT, additional_properties: nil)
85+
def initialize(id:, name:, key:, rank_by:, breakdown_attributes:, start:, rank: OMIT, value: OMIT,
86+
breakdown_attribute: OMIT, metric_key: OMIT, metric_name: OMIT, points_system_key: OMIT, points_system_name: OMIT, description: OMIT, end_: OMIT, max_participants: OMIT, run_unit: OMIT, run_interval: OMIT, additional_properties: nil)
8787
@rank = rank if rank != OMIT
8888
@value = value if value != OMIT
8989
@id = id
@@ -99,7 +99,7 @@ def initialize(id:, name:, key:, rank_by:, breakdown_attributes:, start:, max_pa
9999
@description = description if description != OMIT
100100
@start = start
101101
@end_ = end_ if end_ != OMIT
102-
@max_participants = max_participants
102+
@max_participants = max_participants if max_participants != OMIT
103103
@run_unit = run_unit if run_unit != OMIT
104104
@run_interval = run_interval if run_interval != OMIT
105105
@additional_properties = additional_properties
@@ -204,7 +204,7 @@ def self.validate_raw(obj:)
204204
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
205205
obj.start.is_a?(String) != false || raise("Passed value for field obj.start is not the expected type, validation failed.")
206206
obj.end_&.is_a?(String) != false || raise("Passed value for field obj.end_ is not the expected type, validation failed.")
207-
obj.max_participants.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
207+
obj.max_participants&.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
208208
obj.run_unit&.is_a?(TrophyApiClient::LeaderboardResponseRunUnit) != false || raise("Passed value for field obj.run_unit is not the expected type, validation failed.")
209209
obj.run_interval&.is_a?(Integer) != false || raise("Passed value for field obj.run_interval is not the expected type, validation failed.")
210210
end

lib/trophy_api_client/types/user_leaderboard_response_with_history.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ class UserLeaderboardResponseWithHistory
8686
# type. Null for one-time leaderboards.
8787
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
8888
# @return [TrophyApiClient::UserLeaderboardResponseWithHistory]
89-
def initialize(history:, id:, name:, key:, rank_by:, breakdown_attributes:, start:, max_participants:, rank: OMIT,
90-
value: OMIT, breakdown_attribute: OMIT, metric_key: OMIT, metric_name: OMIT, points_system_key: OMIT, points_system_name: OMIT, description: OMIT, end_: OMIT, run_unit: OMIT, run_interval: OMIT, additional_properties: nil)
89+
def initialize(history:, id:, name:, key:, rank_by:, breakdown_attributes:, start:, rank: OMIT, value: OMIT,
90+
breakdown_attribute: OMIT, metric_key: OMIT, metric_name: OMIT, points_system_key: OMIT, points_system_name: OMIT, description: OMIT, end_: OMIT, max_participants: OMIT, run_unit: OMIT, run_interval: OMIT, additional_properties: nil)
9191
@history = history
9292
@rank = rank if rank != OMIT
9393
@value = value if value != OMIT
@@ -104,7 +104,7 @@ def initialize(history:, id:, name:, key:, rank_by:, breakdown_attributes:, star
104104
@description = description if description != OMIT
105105
@start = start
106106
@end_ = end_ if end_ != OMIT
107-
@max_participants = max_participants
107+
@max_participants = max_participants if max_participants != OMIT
108108
@run_unit = run_unit if run_unit != OMIT
109109
@run_interval = run_interval if run_interval != OMIT
110110
@additional_properties = additional_properties
@@ -216,7 +216,7 @@ def self.validate_raw(obj:)
216216
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
217217
obj.start.is_a?(String) != false || raise("Passed value for field obj.start is not the expected type, validation failed.")
218218
obj.end_&.is_a?(String) != false || raise("Passed value for field obj.end_ is not the expected type, validation failed.")
219-
obj.max_participants.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
219+
obj.max_participants&.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
220220
obj.run_unit&.is_a?(TrophyApiClient::LeaderboardResponseRunUnit) != false || raise("Passed value for field obj.run_unit is not the expected type, validation failed.")
221221
obj.run_interval&.is_a?(Integer) != false || raise("Passed value for field obj.run_interval is not the expected type, validation failed.")
222222
end

0 commit comments

Comments
 (0)