brick_ftp 1.0.0 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +10 -3
- data/.github/action/publish_gem/Dockerfile +14 -0
- data/.github/action/publish_gem/entrypoint.sh +18 -0
- data/.github/action/write_github_release/Dockerfile +14 -0
- data/.github/action/write_github_release/entrypoint.sh +48 -0
- data/.github/main.workflow +14 -0
- data/CHANGELOG.md +77 -2
- data/README.md +6 -3
- data/brick_ftp.gemspec +1 -2
- data/lib/brick_ftp.rb +2 -1
- data/lib/brick_ftp/restful_api.rb +11 -11
- data/lib/brick_ftp/restful_api/add_group_member.rb +2 -2
- data/lib/brick_ftp/restful_api/client.rb +4 -2
- data/lib/brick_ftp/restful_api/complete_upload.rb +2 -2
- data/lib/brick_ftp/restful_api/continue_upload.rb +2 -2
- data/lib/brick_ftp/restful_api/copy_folder.rb +1 -1
- data/lib/brick_ftp/restful_api/count_folder_contents.rb +3 -3
- data/lib/brick_ftp/restful_api/count_users.rb +1 -1
- data/lib/brick_ftp/restful_api/create_api_key.rb +2 -2
- data/lib/brick_ftp/restful_api/create_behavior.rb +2 -2
- data/lib/brick_ftp/restful_api/create_bundle.rb +2 -2
- data/lib/brick_ftp/restful_api/create_folder.rb +1 -1
- data/lib/brick_ftp/restful_api/create_group.rb +2 -2
- data/lib/brick_ftp/restful_api/create_notification.rb +2 -2
- data/lib/brick_ftp/restful_api/create_permission.rb +2 -2
- data/lib/brick_ftp/restful_api/create_public_key.rb +2 -2
- data/lib/brick_ftp/restful_api/create_user.rb +2 -2
- data/lib/brick_ftp/restful_api/create_user_in_group.rb +2 -2
- data/lib/brick_ftp/restful_api/delete_api_key.rb +1 -1
- data/lib/brick_ftp/restful_api/delete_behavior.rb +1 -1
- data/lib/brick_ftp/restful_api/delete_bundle.rb +1 -1
- data/lib/brick_ftp/restful_api/delete_folder.rb +5 -7
- data/lib/brick_ftp/restful_api/delete_group.rb +1 -1
- data/lib/brick_ftp/restful_api/delete_notification.rb +1 -1
- data/lib/brick_ftp/restful_api/delete_permission.rb +1 -1
- data/lib/brick_ftp/restful_api/delete_public_key.rb +1 -1
- data/lib/brick_ftp/restful_api/delete_user.rb +1 -1
- data/lib/brick_ftp/restful_api/download_file.rb +2 -2
- data/lib/brick_ftp/restful_api/get_api_key.rb +2 -2
- data/lib/brick_ftp/restful_api/get_behavior.rb +2 -2
- data/lib/brick_ftp/restful_api/get_bundle.rb +2 -2
- data/lib/brick_ftp/restful_api/get_bundle_zip.rb +2 -2
- data/lib/brick_ftp/restful_api/get_file_in_bundle.rb +2 -2
- data/lib/brick_ftp/restful_api/get_folder_size.rb +1 -1
- data/lib/brick_ftp/restful_api/get_group.rb +2 -2
- data/lib/brick_ftp/restful_api/get_public_key.rb +2 -2
- data/lib/brick_ftp/restful_api/get_site_usage.rb +1 -1
- data/lib/brick_ftp/restful_api/get_user.rb +2 -2
- data/lib/brick_ftp/restful_api/list_api_keys.rb +2 -2
- data/lib/brick_ftp/restful_api/list_behaviors.rb +2 -2
- data/lib/brick_ftp/restful_api/list_bundle_contents.rb +2 -2
- data/lib/brick_ftp/restful_api/list_bundles.rb +2 -2
- data/lib/brick_ftp/restful_api/list_folder_behaviors.rb +2 -2
- data/lib/brick_ftp/restful_api/list_folders.rb +2 -2
- data/lib/brick_ftp/restful_api/list_groups.rb +2 -2
- data/lib/brick_ftp/restful_api/list_notifications.rb +2 -2
- data/lib/brick_ftp/restful_api/list_permissions.rb +2 -2
- data/lib/brick_ftp/restful_api/list_public_keys.rb +2 -2
- data/lib/brick_ftp/restful_api/list_users.rb +2 -2
- data/lib/brick_ftp/restful_api/move_folder.rb +1 -1
- data/lib/brick_ftp/restful_api/remove_group_member.rb +1 -1
- data/lib/brick_ftp/restful_api/retrieve_file_history.rb +1 -1
- data/lib/brick_ftp/restful_api/retrieve_folder_history.rb +1 -1
- data/lib/brick_ftp/restful_api/retrieve_history.rb +1 -1
- data/lib/brick_ftp/restful_api/retrieve_login_history.rb +1 -1
- data/lib/brick_ftp/restful_api/retrieve_site_history.rb +1 -1
- data/lib/brick_ftp/restful_api/retrieve_user_history.rb +1 -1
- data/lib/brick_ftp/restful_api/search_user.rb +2 -2
- data/lib/brick_ftp/restful_api/start_upload.rb +2 -2
- data/lib/brick_ftp/restful_api/unlock_user.rb +2 -2
- data/lib/brick_ftp/restful_api/update_behavior.rb +2 -2
- data/lib/brick_ftp/restful_api/update_group.rb +2 -2
- data/lib/brick_ftp/restful_api/update_group_member.rb +2 -2
- data/lib/brick_ftp/restful_api/update_user.rb +2 -2
- data/lib/brick_ftp/restful_api/upload_file.rb +4 -4
- data/lib/brick_ftp/types/behavior.rb +4 -2
- data/lib/brick_ftp/types/bundle.rb +4 -2
- data/lib/brick_ftp/types/bundle_content.rb +4 -2
- data/lib/brick_ftp/types/bundle_zip.rb +4 -2
- data/lib/brick_ftp/types/file.rb +4 -2
- data/lib/brick_ftp/types/file_in_bundle.rb +4 -2
- data/lib/brick_ftp/types/folder_contents_count.rb +5 -3
- data/lib/brick_ftp/types/group.rb +4 -2
- data/lib/brick_ftp/types/group_membership.rb +4 -2
- data/lib/brick_ftp/types/history.rb +4 -2
- data/lib/brick_ftp/types/ignore_undefined_attributes.rb +11 -0
- data/lib/brick_ftp/types/notification.rb +4 -2
- data/lib/brick_ftp/types/permission.rb +4 -2
- data/lib/brick_ftp/types/site_usage.rb +3 -1
- data/lib/brick_ftp/types/upload.rb +4 -2
- data/lib/brick_ftp/types/user.rb +4 -2
- data/lib/brick_ftp/types/user_api_key.rb +4 -2
- data/lib/brick_ftp/types/user_public_key.rb +4 -2
- data/lib/brick_ftp/version.rb +1 -1
- metadata +14 -23
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# Show a public key
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#show-a-public-key Show a public key
|
8
8
|
#
|
9
9
|
class GetPublicKey
|
10
10
|
include Command
|
@@ -19,7 +19,7 @@ module BrickFTP
|
|
19
19
|
def call(id)
|
20
20
|
res = client.get("/api/rest/v1/public_keys/#{id}.json")
|
21
21
|
|
22
|
-
BrickFTP::Types::UserPublicKey.new(res.symbolize_keys)
|
22
|
+
BrickFTP::Types::UserPublicKey.new(**res.symbolize_keys)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# Show a user
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#show-a-user Show a user
|
8
8
|
#
|
9
9
|
class GetUser
|
10
10
|
include Command
|
@@ -20,7 +20,7 @@ module BrickFTP
|
|
20
20
|
res = client.get("/api/rest/v1/users/#{id}.json")
|
21
21
|
return nil if !res || res.empty?
|
22
22
|
|
23
|
-
BrickFTP::Types::User.new(res.symbolize_keys)
|
23
|
+
BrickFTP::Types::User.new(**res.symbolize_keys)
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# List API keys
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#list-api-keys List API keys
|
8
8
|
#
|
9
9
|
class ListAPIKeys
|
10
10
|
include Command
|
@@ -19,7 +19,7 @@ module BrickFTP
|
|
19
19
|
def call(id)
|
20
20
|
res = client.get("/api/rest/v1/users/#{id}/api_keys.json")
|
21
21
|
|
22
|
-
res.map { |i| BrickFTP::Types::UserAPIKey.new(i.symbolize_keys) }
|
22
|
+
res.map { |i| BrickFTP::Types::UserAPIKey.new(**i.symbolize_keys) }
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# List all behaviors
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#list-all-behaviors List all behaviors
|
8
8
|
#
|
9
9
|
class ListBehaviors
|
10
10
|
include Command
|
@@ -17,7 +17,7 @@ module BrickFTP
|
|
17
17
|
def call
|
18
18
|
res = client.get('/api/rest/v1/behaviors.json')
|
19
19
|
|
20
|
-
res.map { |i| BrickFTP::Types::Behavior.new(i.symbolize_keys) }
|
20
|
+
res.map { |i| BrickFTP::Types::Behavior.new(**i.symbolize_keys) }
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
module RESTfulAPI
|
7
7
|
# List bundle contents
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#list-bundle-contents List bundle contents
|
10
10
|
#
|
11
11
|
# ### Params
|
12
12
|
#
|
@@ -51,7 +51,7 @@ module BrickFTP
|
|
51
51
|
end
|
52
52
|
res = client.post(endpoint, params.to_h.compact)
|
53
53
|
|
54
|
-
res.map { |i| BrickFTP::Types::BundleContent.new(i.symbolize_keys) }
|
54
|
+
res.map { |i| BrickFTP::Types::BundleContent.new(**i.symbolize_keys) }
|
55
55
|
end
|
56
56
|
end
|
57
57
|
end
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# List all bundles
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#list-all-bundles List all bundles
|
8
8
|
#
|
9
9
|
class ListBundles
|
10
10
|
include Command
|
@@ -17,7 +17,7 @@ module BrickFTP
|
|
17
17
|
def call
|
18
18
|
res = client.get('/api/rest/v1/bundles.json')
|
19
19
|
|
20
|
-
res.map { |i| BrickFTP::Types::Bundle.new(i.symbolize_keys) }
|
20
|
+
res.map { |i| BrickFTP::Types::Bundle.new(**i.symbolize_keys) }
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
module RESTfulAPI
|
7
7
|
# List behaviors for a folder
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#list-behaviors-for-a-folder List behaviors for a folder
|
10
10
|
#
|
11
11
|
# ### Params
|
12
12
|
#
|
@@ -33,7 +33,7 @@ module BrickFTP
|
|
33
33
|
endpoint = "#{endpoint}?recursive=1" if recursive
|
34
34
|
res = client.get(endpoint)
|
35
35
|
|
36
|
-
res.map { |i| BrickFTP::Types::Behavior.new(i.symbolize_keys) }
|
36
|
+
res.map { |i| BrickFTP::Types::Behavior.new(**i.symbolize_keys) }
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
module RESTfulAPI
|
7
7
|
# List folder contents
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#list-folder-contents List folder contents
|
10
10
|
#
|
11
11
|
# ### Params
|
12
12
|
#
|
@@ -59,7 +59,7 @@ module BrickFTP
|
|
59
59
|
|
60
60
|
res = client.get(endpoint)
|
61
61
|
|
62
|
-
res.map { |i| BrickFTP::Types::File.new(i.symbolize_keys) }
|
62
|
+
res.map { |i| BrickFTP::Types::File.new(**i.symbolize_keys) }
|
63
63
|
end
|
64
64
|
|
65
65
|
private
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# List all groups
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#list-all-groups List all groups
|
8
8
|
#
|
9
9
|
class ListGroups
|
10
10
|
include Command
|
@@ -17,7 +17,7 @@ module BrickFTP
|
|
17
17
|
def call
|
18
18
|
res = client.get('/api/rest/v1/groups.json')
|
19
19
|
|
20
|
-
res.map { |i| BrickFTP::Types::Group.new(i.symbolize_keys) }
|
20
|
+
res.map { |i| BrickFTP::Types::Group.new(**i.symbolize_keys) }
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# List all notifications
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#list-all-notifications List all notifications
|
8
8
|
#
|
9
9
|
class ListNotifications
|
10
10
|
include Command
|
@@ -17,7 +17,7 @@ module BrickFTP
|
|
17
17
|
def call
|
18
18
|
res = client.get('/api/rest/v1/notifications.json')
|
19
19
|
|
20
|
-
res.map { |i| BrickFTP::Types::Notification.new(i.symbolize_keys) }
|
20
|
+
res.map { |i| BrickFTP::Types::Notification.new(**i.symbolize_keys) }
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
module RESTfulAPI
|
7
7
|
# List permissions
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#list-permissions List permissions
|
10
10
|
#
|
11
11
|
# ### Params
|
12
12
|
#
|
@@ -35,7 +35,7 @@ module BrickFTP
|
|
35
35
|
endpoint = "#{endpoint}?path=#{ERB::Util.url_encode(path)}" unless path.nil?
|
36
36
|
res = client.get(endpoint)
|
37
37
|
|
38
|
-
res.map { |i| BrickFTP::Types::Permission.new(i.symbolize_keys) }
|
38
|
+
res.map { |i| BrickFTP::Types::Permission.new(**i.symbolize_keys) }
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# List public keys
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#list-public-keys List public keys
|
8
8
|
#
|
9
9
|
class ListPublicKeys
|
10
10
|
include Command
|
@@ -19,7 +19,7 @@ module BrickFTP
|
|
19
19
|
def call(id)
|
20
20
|
res = client.get("/api/rest/v1/users/#{id}/public_keys.json")
|
21
21
|
|
22
|
-
res.map { |i| BrickFTP::Types::UserPublicKey.new(i.symbolize_keys) }
|
22
|
+
res.map { |i| BrickFTP::Types::UserPublicKey.new(**i.symbolize_keys) }
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# List users
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#list-users List users
|
8
8
|
#
|
9
9
|
# ### Params
|
10
10
|
#
|
@@ -38,7 +38,7 @@ module BrickFTP
|
|
38
38
|
endpoint = "#{endpoint}?#{query}" unless query.empty?
|
39
39
|
res = client.get(endpoint)
|
40
40
|
|
41
|
-
res.map { |i| BrickFTP::Types::User.new(i.symbolize_keys) }
|
41
|
+
res.map { |i| BrickFTP::Types::User.new(**i.symbolize_keys) }
|
42
42
|
end
|
43
43
|
|
44
44
|
private
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
module RESTfulAPI
|
7
7
|
# Move or rename a file or folder
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#move-or-rename-a-file-or-folder Move or rename a file or folder
|
10
10
|
#
|
11
11
|
# ### Params
|
12
12
|
#
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
module RESTfulAPI
|
7
7
|
# Retrieve folder history
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#retrieve-folder-history Retrieve folder history
|
10
10
|
#
|
11
11
|
# ### Params
|
12
12
|
#
|
@@ -17,7 +17,7 @@ module BrickFTP
|
|
17
17
|
endpoint = "#{path}?#{query}" unless query.empty?
|
18
18
|
res = client.get(endpoint)
|
19
19
|
|
20
|
-
res.map { |i| BrickFTP::Types::History.new(i.symbolize_keys) }
|
20
|
+
res.map { |i| BrickFTP::Types::History.new(**i.symbolize_keys) }
|
21
21
|
end
|
22
22
|
|
23
23
|
def validate_page!(page)
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
module RESTfulAPI
|
7
7
|
# Search users
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#search-users Search users
|
10
10
|
#
|
11
11
|
class SearchUser
|
12
12
|
include Command
|
@@ -22,7 +22,7 @@ module BrickFTP
|
|
22
22
|
res = client.get("/api/rest/v1/users.json?q[username]=#{ERB::Util.url_encode(username)}")
|
23
23
|
return nil if !res || res.empty?
|
24
24
|
|
25
|
-
BrickFTP::Types::User.new(res.first.symbolize_keys)
|
25
|
+
BrickFTP::Types::User.new(**res.first.symbolize_keys)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -6,7 +6,7 @@ module BrickFTP
|
|
6
6
|
module RESTfulAPI
|
7
7
|
# Starting a new upload
|
8
8
|
#
|
9
|
-
# @see https://developers.
|
9
|
+
# @see https://developers.files.com/#starting-a-new-upload Starting a new upload
|
10
10
|
#
|
11
11
|
class StartUpload
|
12
12
|
include Command
|
@@ -21,7 +21,7 @@ module BrickFTP
|
|
21
21
|
def call(path)
|
22
22
|
res = client.post("/api/rest/v1/files/#{ERB::Util.url_encode(path)}", action: 'put')
|
23
23
|
|
24
|
-
BrickFTP::Types::Upload.new(res.symbolize_keys)
|
24
|
+
BrickFTP::Types::Upload.new(**res.symbolize_keys)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# Unlock a user
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#unlock-a-user Unlock a user
|
8
8
|
#
|
9
9
|
class UnlockUser
|
10
10
|
include Command
|
@@ -19,7 +19,7 @@ module BrickFTP
|
|
19
19
|
def call(id)
|
20
20
|
res = client.post("/api/rest/v1/users/#{id}/unlock.json")
|
21
21
|
|
22
|
-
BrickFTP::Types::User.new(res.symbolize_keys)
|
22
|
+
BrickFTP::Types::User.new(**res.symbolize_keys)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# Update a behavior
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#update-a-behavior Update a behavior
|
8
8
|
#
|
9
9
|
# ### Params
|
10
10
|
#
|
@@ -32,7 +32,7 @@ module BrickFTP
|
|
32
32
|
def call(id, params)
|
33
33
|
res = client.patch("/api/rest/v1/behaviors/#{id}.json", params.to_h.compact)
|
34
34
|
|
35
|
-
BrickFTP::Types::Behavior.new(res.symbolize_keys)
|
35
|
+
BrickFTP::Types::Behavior.new(**res.symbolize_keys)
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# Update a group
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#update-a-group Update a group
|
8
8
|
#
|
9
9
|
# ### Params
|
10
10
|
#
|
@@ -37,7 +37,7 @@ module BrickFTP
|
|
37
37
|
def call(id, params)
|
38
38
|
res = client.put("/api/rest/v1/groups/#{id}.json", params.to_h.compact)
|
39
39
|
|
40
|
-
BrickFTP::Types::Group.new(res.symbolize_keys)
|
40
|
+
BrickFTP::Types::Group.new(**res.symbolize_keys)
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# Update a member
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#update-a-member Update a member
|
8
8
|
#
|
9
9
|
# ### Params
|
10
10
|
#
|
@@ -33,7 +33,7 @@ module BrickFTP
|
|
33
33
|
def call(group_id, user_id, params)
|
34
34
|
res = client.patch("/api/rest/v1/groups/#{group_id}/memberships/#{user_id}.json", membership: params.to_h.compact)
|
35
35
|
|
36
|
-
BrickFTP::Types::GroupMembership.new(res.symbolize_keys)
|
36
|
+
BrickFTP::Types::GroupMembership.new(**res.symbolize_keys)
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
@@ -4,7 +4,7 @@ module BrickFTP
|
|
4
4
|
module RESTfulAPI
|
5
5
|
# Update a user
|
6
6
|
#
|
7
|
-
# @see https://developers.
|
7
|
+
# @see https://developers.files.com/#update-a-user Update a user
|
8
8
|
#
|
9
9
|
# ### Params
|
10
10
|
#
|
@@ -94,7 +94,7 @@ module BrickFTP
|
|
94
94
|
def call(id, params)
|
95
95
|
res = client.put("/api/rest/v1/users/#{id}.json", params.to_h.compact)
|
96
96
|
|
97
|
-
BrickFTP::Types::User.new(res.symbolize_keys)
|
97
|
+
BrickFTP::Types::User.new(**res.symbolize_keys)
|
98
98
|
end
|
99
99
|
end
|
100
100
|
end
|