Module: StrawberryAPI::Client::Roles
- Included in:
- StrawberryAPI::Client
- Defined in:
- lib/strawberry_api/client/roles.rb
Instance Method Summary collapse
-
#roles ⇒ Array<StrawberryAPI::Role>
Fetches all roles.
Instance Method Details
#roles ⇒ Array<StrawberryAPI::Role>
Fetches all roles
10 11 12 13 14 |
# File 'lib/strawberry_api/client/roles.rb', line 10 def roles get("/roles").parse['array']&.map do |role| Role.new(role) end end |