class BrickFTP::RESTfulAPI::GetUser
Show a user
@see developers.files.com/#show-a-user Show a user
Public Instance Methods
call(id)
click to toggle source
Returns a single user.
@param [Integer] id Globally unique identifier of each user.
Each user is given an ID automatically upon creation.
@return [BrickFTP::Types::User, nil] found User or nil
# File lib/brick_ftp/restful_api/get_user.rb, line 19 def call(id) res = client.get("/api/rest/v1/users/#{id}.json") return nil if !res || res.empty? BrickFTP::Types::User.new(**res.symbolize_keys) end