Skip to content

Commit 4260daf

Browse files
Automatically update Ruby SDK
1 parent 5f4a48b commit 4260daf

10 files changed

Lines changed: 76 additions & 64 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.0.34"
5+
VERSION = "1.0.35"
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: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class LeaderboardsAllResponseItem
4242
# leaderboards.
4343
attr_reader :run_unit
4444
# @return [Integer] The interval between repetitions, relative to the start date and repetition
45-
# type.
45+
# type. Null for one-time leaderboards.
4646
attr_reader :run_interval
4747
# @return [OpenStruct] Additional properties unmapped to the current class definition
4848
attr_reader :additional_properties
@@ -70,11 +70,11 @@ class LeaderboardsAllResponseItem
7070
# @param run_unit [TrophyApiClient::LeaderboardResponseRunUnit] The repetition type for recurring leaderboards, or null for one-time
7171
# leaderboards.
7272
# @param run_interval [Integer] The interval between repetitions, relative to the start date and repetition
73-
# type.
73+
# type. Null for one-time leaderboards.
7474
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
7575
# @return [TrophyApiClient::Leaderboards::LeaderboardsAllResponseItem]
76-
def initialize(status:, id:, name:, key:, rank_by:, description:, start:, max_participants:, run_interval:, breakdown_attribute: OMIT, metric_key: OMIT,
77-
metric_name: OMIT, points_system_key: OMIT, points_system_name: OMIT, end_: OMIT, run_unit: OMIT, additional_properties: nil)
76+
def initialize(status:, id:, name:, key:, rank_by:, start:, max_participants:, breakdown_attribute: OMIT, metric_key: OMIT,
77+
metric_name: OMIT, points_system_key: OMIT, points_system_name: OMIT, description: OMIT, end_: OMIT, run_unit: OMIT, run_interval: OMIT, additional_properties: nil)
7878
@status = status
7979
@id = id
8080
@name = name
@@ -85,12 +85,12 @@ def initialize(status:, id:, name:, key:, rank_by:, description:, start:, max_pa
8585
@metric_name = metric_name if metric_name != OMIT
8686
@points_system_key = points_system_key if points_system_key != OMIT
8787
@points_system_name = points_system_name if points_system_name != OMIT
88-
@description = description
88+
@description = description if description != OMIT
8989
@start = start
9090
@end_ = end_ if end_ != OMIT
9191
@max_participants = max_participants
9292
@run_unit = run_unit if run_unit != OMIT
93-
@run_interval = run_interval
93+
@run_interval = run_interval if run_interval != OMIT
9494
@additional_properties = additional_properties
9595
@_field_set = {
9696
"status": status,
@@ -182,12 +182,12 @@ def self.validate_raw(obj:)
182182
obj.metric_name&.is_a?(String) != false || raise("Passed value for field obj.metric_name is not the expected type, validation failed.")
183183
obj.points_system_key&.is_a?(String) != false || raise("Passed value for field obj.points_system_key is not the expected type, validation failed.")
184184
obj.points_system_name&.is_a?(String) != false || raise("Passed value for field obj.points_system_name is not the expected type, validation failed.")
185-
obj.description.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
185+
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
186186
obj.start.is_a?(String) != false || raise("Passed value for field obj.start is not the expected type, validation failed.")
187187
obj.end_&.is_a?(String) != false || raise("Passed value for field obj.end_ is not the expected type, validation failed.")
188188
obj.max_participants.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
189189
obj.run_unit&.is_a?(TrophyApiClient::LeaderboardResponseRunUnit) != false || raise("Passed value for field obj.run_unit is not the expected type, validation failed.")
190-
obj.run_interval.is_a?(Integer) != false || raise("Passed value for field obj.run_interval is not the expected type, validation failed.")
190+
obj.run_interval&.is_a?(Integer) != false || raise("Passed value for field obj.run_interval is not the expected type, validation failed.")
191191
end
192192
end
193193
end

lib/trophy_api_client/types/leaderboard_response.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class LeaderboardResponse
3939
# leaderboards.
4040
attr_reader :run_unit
4141
# @return [Integer] The interval between repetitions, relative to the start date and repetition
42-
# type.
42+
# type. Null for one-time leaderboards.
4343
attr_reader :run_interval
4444
# @return [OpenStruct] Additional properties unmapped to the current class definition
4545
attr_reader :additional_properties
@@ -66,11 +66,11 @@ class LeaderboardResponse
6666
# @param run_unit [TrophyApiClient::LeaderboardResponseRunUnit] The repetition type for recurring leaderboards, or null for one-time
6767
# leaderboards.
6868
# @param run_interval [Integer] The interval between repetitions, relative to the start date and repetition
69-
# type.
69+
# type. Null for one-time leaderboards.
7070
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
7171
# @return [TrophyApiClient::LeaderboardResponse]
72-
def initialize(id:, name:, key:, rank_by:, description:, start:, max_participants:, run_interval:, breakdown_attribute: OMIT, metric_key: OMIT, metric_name: OMIT,
73-
points_system_key: OMIT, points_system_name: OMIT, end_: OMIT, run_unit: OMIT, additional_properties: nil)
72+
def initialize(id:, name:, key:, rank_by:, start:, max_participants:, breakdown_attribute: OMIT, metric_key: OMIT, metric_name: OMIT,
73+
points_system_key: OMIT, points_system_name: OMIT, description: OMIT, end_: OMIT, run_unit: OMIT, run_interval: OMIT, additional_properties: nil)
7474
@id = id
7575
@name = name
7676
@key = key
@@ -80,12 +80,12 @@ def initialize(id:, name:, key:, rank_by:, description:, start:, max_participant
8080
@metric_name = metric_name if metric_name != OMIT
8181
@points_system_key = points_system_key if points_system_key != OMIT
8282
@points_system_name = points_system_name if points_system_name != OMIT
83-
@description = description
83+
@description = description if description != OMIT
8484
@start = start
8585
@end_ = end_ if end_ != OMIT
8686
@max_participants = max_participants
8787
@run_unit = run_unit if run_unit != OMIT
88-
@run_interval = run_interval
88+
@run_interval = run_interval if run_interval != OMIT
8989
@additional_properties = additional_properties
9090
@_field_set = {
9191
"id": id,
@@ -173,12 +173,12 @@ def self.validate_raw(obj:)
173173
obj.metric_name&.is_a?(String) != false || raise("Passed value for field obj.metric_name is not the expected type, validation failed.")
174174
obj.points_system_key&.is_a?(String) != false || raise("Passed value for field obj.points_system_key is not the expected type, validation failed.")
175175
obj.points_system_name&.is_a?(String) != false || raise("Passed value for field obj.points_system_name is not the expected type, validation failed.")
176-
obj.description.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
176+
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
177177
obj.start.is_a?(String) != false || raise("Passed value for field obj.start is not the expected type, validation failed.")
178178
obj.end_&.is_a?(String) != false || raise("Passed value for field obj.end_ is not the expected type, validation failed.")
179179
obj.max_participants.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
180180
obj.run_unit&.is_a?(TrophyApiClient::LeaderboardResponseRunUnit) != false || raise("Passed value for field obj.run_unit is not the expected type, validation failed.")
181-
obj.run_interval.is_a?(Integer) != false || raise("Passed value for field obj.run_interval is not the expected type, validation failed.")
181+
obj.run_interval&.is_a?(Integer) != false || raise("Passed value for field obj.run_interval is not the expected type, validation failed.")
182182
end
183183
end
184184
end

lib/trophy_api_client/types/leaderboard_response_with_rankings.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class LeaderboardResponseWithRankings
4444
# leaderboards.
4545
attr_reader :run_unit
4646
# @return [Integer] The interval between repetitions, relative to the start date and repetition
47-
# type.
47+
# type. Null for one-time leaderboards.
4848
attr_reader :run_interval
4949
# @return [OpenStruct] Additional properties unmapped to the current class definition
5050
attr_reader :additional_properties
@@ -73,11 +73,11 @@ class LeaderboardResponseWithRankings
7373
# @param run_unit [TrophyApiClient::LeaderboardResponseRunUnit] The repetition type for recurring leaderboards, or null for one-time
7474
# leaderboards.
7575
# @param run_interval [Integer] The interval between repetitions, relative to the start date and repetition
76-
# type.
76+
# type. Null for one-time leaderboards.
7777
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
7878
# @return [TrophyApiClient::LeaderboardResponseWithRankings]
79-
def initialize(status:, rankings:, id:, name:, key:, rank_by:, description:, start:, max_participants:, run_interval:, breakdown_attribute: OMIT, metric_key: OMIT,
80-
metric_name: OMIT, points_system_key: OMIT, points_system_name: OMIT, end_: OMIT, run_unit: OMIT, additional_properties: nil)
79+
def initialize(status:, rankings:, id:, name:, key:, rank_by:, start:, max_participants:, breakdown_attribute: OMIT, metric_key: OMIT,
80+
metric_name: OMIT, points_system_key: OMIT, points_system_name: OMIT, description: OMIT, end_: OMIT, run_unit: OMIT, run_interval: OMIT, additional_properties: nil)
8181
@status = status
8282
@rankings = rankings
8383
@id = id
@@ -89,12 +89,12 @@ def initialize(status:, rankings:, id:, name:, key:, rank_by:, description:, sta
8989
@metric_name = metric_name if metric_name != OMIT
9090
@points_system_key = points_system_key if points_system_key != OMIT
9191
@points_system_name = points_system_name if points_system_name != OMIT
92-
@description = description
92+
@description = description if description != OMIT
9393
@start = start
9494
@end_ = end_ if end_ != OMIT
9595
@max_participants = max_participants
9696
@run_unit = run_unit if run_unit != OMIT
97-
@run_interval = run_interval
97+
@run_interval = run_interval if run_interval != OMIT
9898
@additional_properties = additional_properties
9999
@_field_set = {
100100
"status": status,
@@ -193,12 +193,12 @@ def self.validate_raw(obj:)
193193
obj.metric_name&.is_a?(String) != false || raise("Passed value for field obj.metric_name is not the expected type, validation failed.")
194194
obj.points_system_key&.is_a?(String) != false || raise("Passed value for field obj.points_system_key is not the expected type, validation failed.")
195195
obj.points_system_name&.is_a?(String) != false || raise("Passed value for field obj.points_system_name is not the expected type, validation failed.")
196-
obj.description.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
196+
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
197197
obj.start.is_a?(String) != false || raise("Passed value for field obj.start is not the expected type, validation failed.")
198198
obj.end_&.is_a?(String) != false || raise("Passed value for field obj.end_ is not the expected type, validation failed.")
199199
obj.max_participants.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
200200
obj.run_unit&.is_a?(TrophyApiClient::LeaderboardResponseRunUnit) != false || raise("Passed value for field obj.run_unit is not the expected type, validation failed.")
201-
obj.run_interval.is_a?(Integer) != false || raise("Passed value for field obj.run_interval is not the expected type, validation failed.")
201+
obj.run_interval&.is_a?(Integer) != false || raise("Passed value for field obj.run_interval is not the expected type, validation failed.")
202202
end
203203
end
204204
end

lib/trophy_api_client/types/metric_event_leaderboard_response.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class MetricEventLeaderboardResponse
5050
# leaderboards.
5151
attr_reader :run_unit
5252
# @return [Integer] The interval between repetitions, relative to the start date and repetition
53-
# type.
53+
# type. Null for one-time leaderboards.
5454
attr_reader :run_interval
5555
# @return [OpenStruct] Additional properties unmapped to the current class definition
5656
attr_reader :additional_properties
@@ -85,11 +85,11 @@ class MetricEventLeaderboardResponse
8585
# @param run_unit [TrophyApiClient::LeaderboardResponseRunUnit] The repetition type for recurring leaderboards, or null for one-time
8686
# leaderboards.
8787
# @param run_interval [Integer] The interval between repetitions, relative to the start date and repetition
88-
# type.
88+
# type. Null for one-time leaderboards.
8989
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
9090
# @return [TrophyApiClient::MetricEventLeaderboardResponse]
91-
def initialize(threshold:, id:, name:, key:, rank_by:, description:, start:, max_participants:, run_interval:,
92-
end_: OMIT, rank: OMIT, previous_rank: OMIT, breakdown_attribute_value: OMIT, breakdown_attribute: OMIT, metric_key: OMIT, metric_name: OMIT, points_system_key: OMIT, points_system_name: OMIT, run_unit: OMIT, additional_properties: nil)
91+
def initialize(threshold:, id:, name:, key:, rank_by:, start:, max_participants:, end_: OMIT, rank: OMIT,
92+
previous_rank: OMIT, breakdown_attribute_value: 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)
9393
@end_ = end_ if end_ != OMIT
9494
@rank = rank if rank != OMIT
9595
@previous_rank = previous_rank if previous_rank != OMIT
@@ -104,11 +104,11 @@ def initialize(threshold:, id:, name:, key:, rank_by:, description:, start:, max
104104
@metric_name = metric_name if metric_name != OMIT
105105
@points_system_key = points_system_key if points_system_key != OMIT
106106
@points_system_name = points_system_name if points_system_name != OMIT
107-
@description = description
107+
@description = description if description != OMIT
108108
@start = start
109109
@max_participants = max_participants
110110
@run_unit = run_unit if run_unit != OMIT
111-
@run_interval = run_interval
111+
@run_interval = run_interval if run_interval != OMIT
112112
@additional_properties = additional_properties
113113
@_field_set = {
114114
"end": end_,
@@ -213,11 +213,11 @@ def self.validate_raw(obj:)
213213
obj.metric_name&.is_a?(String) != false || raise("Passed value for field obj.metric_name is not the expected type, validation failed.")
214214
obj.points_system_key&.is_a?(String) != false || raise("Passed value for field obj.points_system_key is not the expected type, validation failed.")
215215
obj.points_system_name&.is_a?(String) != false || raise("Passed value for field obj.points_system_name is not the expected type, validation failed.")
216-
obj.description.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
216+
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.max_participants.is_a?(Integer) != false || raise("Passed value for field obj.max_participants is not the expected type, validation failed.")
219219
obj.run_unit&.is_a?(TrophyApiClient::LeaderboardResponseRunUnit) != false || raise("Passed value for field obj.run_unit is not the expected type, validation failed.")
220-
obj.run_interval.is_a?(Integer) != false || raise("Passed value for field obj.run_interval is not the expected type, validation failed.")
220+
obj.run_interval&.is_a?(Integer) != false || raise("Passed value for field obj.run_interval is not the expected type, validation failed.")
221221
end
222222
end
223223
end

0 commit comments

Comments
 (0)