Class: BrickFTP::RESTfulAPI::GetGroup
- Inherits:
-
Object
- Object
- BrickFTP::RESTfulAPI::GetGroup
- Includes:
- Command
- Defined in:
- lib/brick_ftp/restful_api/get_group.rb
Overview
Show a group
Instance Method Summary collapse
-
#call(id) ⇒ BrickFTP::Types::Group?
Returns a single group.
Methods included from Command
Instance Method Details
#call(id) ⇒ BrickFTP::Types::Group?
Returns a single group.
19 20 21 22 23 24 |
# 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 |