Skip to content

Commit ad73143

Browse files
Automatically update Ruby SDK
1 parent ce441a4 commit ad73143

27 files changed

Lines changed: 1293 additions & 46 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.6.0"
5+
VERSION = "1.7.0"
66
AUTHORS = ["Trophy Labs, Inc"].freeze
77
EMAIL = ""
88
SUMMARY = "Ruby library for the Trophy API."

lib/trophy_api_client/admin/attributes/client.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def list(limit: nil, skip: nil, request_options: nil)
5858
end
5959
end
6060

61-
# Create attributes in bulk.
61+
# Create attributes.
6262
#
6363
# @param request [TrophyApiClient::CREATE_ATTRIBUTES_REQUEST]
6464
# @param request_options [TrophyApiClient::RequestOptions]
@@ -88,7 +88,7 @@ def create(request:, request_options: nil)
8888
TrophyApiClient::CreateAttributesResponse.from_json(json_object: response.body)
8989
end
9090

91-
# Delete attributes in bulk by ID.
91+
# Delete attributes by ID.
9292
#
9393
# @param ids [String] Attribute IDs to delete. Repeat the query param or provide a comma-separated
9494
# list.
@@ -119,7 +119,7 @@ def delete(ids: nil, request_options: nil)
119119
TrophyApiClient::DeleteAttributesResponse.from_json(json_object: response.body)
120120
end
121121

122-
# Update attributes in bulk by ID.
122+
# Update attributes by ID.
123123
#
124124
# @param request [TrophyApiClient::UPDATE_ATTRIBUTES_REQUEST]
125125
# @param request_options [TrophyApiClient::RequestOptions]
@@ -233,7 +233,7 @@ def list(limit: nil, skip: nil, request_options: nil)
233233
end
234234
end
235235

236-
# Create attributes in bulk.
236+
# Create attributes.
237237
#
238238
# @param request [TrophyApiClient::CREATE_ATTRIBUTES_REQUEST]
239239
# @param request_options [TrophyApiClient::RequestOptions]
@@ -265,7 +265,7 @@ def create(request:, request_options: nil)
265265
end
266266
end
267267

268-
# Delete attributes in bulk by ID.
268+
# Delete attributes by ID.
269269
#
270270
# @param ids [String] Attribute IDs to delete. Repeat the query param or provide a comma-separated
271271
# list.
@@ -298,7 +298,7 @@ def delete(ids: nil, request_options: nil)
298298
end
299299
end
300300

301-
# Update attributes in bulk by ID.
301+
# Update attributes by ID.
302302
#
303303
# @param request [TrophyApiClient::UPDATE_ATTRIBUTES_REQUEST]
304304
# @param request_options [TrophyApiClient::RequestOptions]

lib/trophy_api_client/admin/client.rb

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,56 @@
11
# frozen_string_literal: true
22

33
require_relative "../../requests"
4-
require_relative "streaks/client"
54
require_relative "attributes/client"
65
require_relative "metrics/client"
6+
require_relative "leaderboards/client"
7+
require_relative "streaks/client"
78
require_relative "points/client"
89

910
module TrophyApiClient
1011
module Admin
1112
class Client
12-
# @return [TrophyApiClient::Admin::StreaksClient]
13-
attr_reader :streaks
1413
# @return [TrophyApiClient::Admin::AttributesClient]
1514
attr_reader :attributes
1615
# @return [TrophyApiClient::Admin::MetricsClient]
1716
attr_reader :metrics
17+
# @return [TrophyApiClient::Admin::LeaderboardsClient]
18+
attr_reader :leaderboards
19+
# @return [TrophyApiClient::Admin::StreaksClient]
20+
attr_reader :streaks
1821
# @return [TrophyApiClient::Admin::Points::Client]
1922
attr_reader :admin
2023

2124
# @param request_client [TrophyApiClient::RequestClient]
2225
# @return [TrophyApiClient::Admin::Client]
2326
def initialize(request_client:)
24-
@streaks = TrophyApiClient::Admin::StreaksClient.new(request_client: request_client)
2527
@attributes = TrophyApiClient::Admin::AttributesClient.new(request_client: request_client)
2628
@metrics = TrophyApiClient::Admin::MetricsClient.new(request_client: request_client)
29+
@leaderboards = TrophyApiClient::Admin::LeaderboardsClient.new(request_client: request_client)
30+
@streaks = TrophyApiClient::Admin::StreaksClient.new(request_client: request_client)
2731
@admin = TrophyApiClient::Admin::Points::Client.new(request_client: request_client)
2832
end
2933
end
3034

3135
class AsyncClient
32-
# @return [TrophyApiClient::Admin::AsyncStreaksClient]
33-
attr_reader :streaks
3436
# @return [TrophyApiClient::Admin::AsyncAttributesClient]
3537
attr_reader :attributes
3638
# @return [TrophyApiClient::Admin::AsyncMetricsClient]
3739
attr_reader :metrics
40+
# @return [TrophyApiClient::Admin::AsyncLeaderboardsClient]
41+
attr_reader :leaderboards
42+
# @return [TrophyApiClient::Admin::AsyncStreaksClient]
43+
attr_reader :streaks
3844
# @return [TrophyApiClient::Admin::Points::AsyncClient]
3945
attr_reader :admin
4046

4147
# @param request_client [TrophyApiClient::AsyncRequestClient]
4248
# @return [TrophyApiClient::Admin::AsyncClient]
4349
def initialize(request_client:)
44-
@streaks = TrophyApiClient::Admin::AsyncStreaksClient.new(request_client: request_client)
4550
@attributes = TrophyApiClient::Admin::AsyncAttributesClient.new(request_client: request_client)
4651
@metrics = TrophyApiClient::Admin::AsyncMetricsClient.new(request_client: request_client)
52+
@leaderboards = TrophyApiClient::Admin::AsyncLeaderboardsClient.new(request_client: request_client)
53+
@streaks = TrophyApiClient::Admin::AsyncStreaksClient.new(request_client: request_client)
4754
@admin = TrophyApiClient::Admin::Points::AsyncClient.new(request_client: request_client)
4855
end
4956
end

0 commit comments

Comments
 (0)