module StrawberryAPI::Client::Roles
Public Instance Methods
roles()
click to toggle source
Fetches all roles
@return [Array<StrawberryAPI::Role>] A list of roles
# File lib/strawberry_api/client/roles.rb, line 10 def roles get("/roles").parse['array']&.map do |role| Role.new(role) end end