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