Class: Arrthorizer::Group
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #applies_to_user?(user, _) ⇒ Boolean
-
#initialize(name) ⇒ Group
constructor
A new instance of Group.
Methods inherited from Role
get, register, registry, #to_key
Constructor Details
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/arrthorizer/group.rb', line 8 def name @name end |
Instance Method Details
#applies_to_user?(user, _) ⇒ Boolean
16 17 18 |
# File 'lib/arrthorizer/group.rb', line 16 def applies_to_user?(user, _) is_member?(user) end |