Sha256: 61df807ecdf5113b5d13e20800e353459ad5e8e6f8b29333ac64df0f0ae9262d
Contents?: true
Size: 329 Bytes
Versions: 3
Compression:
Stored size: 329 Bytes
Contents
# frozen_string_literal: true module KeycloakRack # PORO to interface with Keycloak roles. class RoleMap < KeycloakRack::FlexibleStruct # @!attribute [r] roles # @return [<String>] attribute :roles, Types::StringList # @param [#to_s] name def has_role?(name) name.to_s.in? roles end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
keycloak_rack-1.1.1 | lib/keycloak_rack/role_map.rb |
keycloak_rack-1.1.0 | lib/keycloak_rack/role_map.rb |
keycloak_rack-1.0.0 | lib/keycloak_rack/role_map.rb |