Skip to content

Commit af16022

Browse files
Automatically update Ruby SDK
1 parent ad73143 commit af16022

75 files changed

Lines changed: 5036 additions & 202 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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.7.0"
5+
VERSION = "1.8.0"
66
AUTHORS = ["Trophy Labs, Inc"].freeze
77
EMAIL = ""
88
SUMMARY = "Ruby library for the Trophy API."

lib/trophy_api_client/admin/points/boosts/client.rb

Lines changed: 258 additions & 39 deletions
Large diffs are not rendered by default.

lib/trophy_api_client/admin/points/boosts/types/create_points_boosts_request_boosts_item.rb

Lines changed: 0 additions & 111 deletions
This file was deleted.

lib/trophy_api_client/admin/points/boosts/types/create_points_boosts_request_boosts_item_rounding.rb

Lines changed: 0 additions & 16 deletions
This file was deleted.

lib/trophy_api_client/admin/points/client.rb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,51 @@
11
# frozen_string_literal: true
22

33
require_relative "../../../requests"
4+
require_relative "systems/client"
45
require_relative "boosts/client"
6+
require_relative "levels/client"
7+
require_relative "triggers/client"
58

69
module TrophyApiClient
710
module Admin
811
module Points
912
class Client
13+
# @return [TrophyApiClient::Admin::Points::SystemsClient]
14+
attr_reader :systems
1015
# @return [TrophyApiClient::Admin::Points::BoostsClient]
1116
attr_reader :boosts
17+
# @return [TrophyApiClient::Admin::Points::LevelsClient]
18+
attr_reader :levels
19+
# @return [TrophyApiClient::Admin::Points::TriggersClient]
20+
attr_reader :triggers
1221

1322
# @param request_client [TrophyApiClient::RequestClient]
1423
# @return [TrophyApiClient::Admin::Points::Client]
1524
def initialize(request_client:)
25+
@systems = TrophyApiClient::Admin::Points::SystemsClient.new(request_client: request_client)
1626
@boosts = TrophyApiClient::Admin::Points::BoostsClient.new(request_client: request_client)
27+
@levels = TrophyApiClient::Admin::Points::LevelsClient.new(request_client: request_client)
28+
@triggers = TrophyApiClient::Admin::Points::TriggersClient.new(request_client: request_client)
1729
end
1830
end
1931

2032
class AsyncClient
33+
# @return [TrophyApiClient::Admin::Points::AsyncSystemsClient]
34+
attr_reader :systems
2135
# @return [TrophyApiClient::Admin::Points::AsyncBoostsClient]
2236
attr_reader :boosts
37+
# @return [TrophyApiClient::Admin::Points::AsyncLevelsClient]
38+
attr_reader :levels
39+
# @return [TrophyApiClient::Admin::Points::AsyncTriggersClient]
40+
attr_reader :triggers
2341

2442
# @param request_client [TrophyApiClient::AsyncRequestClient]
2543
# @return [TrophyApiClient::Admin::Points::AsyncClient]
2644
def initialize(request_client:)
45+
@systems = TrophyApiClient::Admin::Points::AsyncSystemsClient.new(request_client: request_client)
2746
@boosts = TrophyApiClient::Admin::Points::AsyncBoostsClient.new(request_client: request_client)
47+
@levels = TrophyApiClient::Admin::Points::AsyncLevelsClient.new(request_client: request_client)
48+
@triggers = TrophyApiClient::Admin::Points::AsyncTriggersClient.new(request_client: request_client)
2849
end
2950
end
3051
end

0 commit comments

Comments
 (0)