Class: Hyrax::Group
- Inherits:
-
Object
- Object
- Hyrax::Group
- Includes:
- GroupBehavior
- Defined in:
- app/models/hyrax/group.rb
Overview
A Plain Old Ruby Object (PORO) representing a named group.
In Hyku, we replace the PORO with an Application Record. But there is significant duplication of logic.
Constant Summary
Constants included from GroupBehavior
Hyrax::GroupBehavior::DEFAULT_NAME_PREFIX
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Group
constructor
A new instance of Group.
Methods included from GroupBehavior
#==, #agent_key, #to_sipity_agent
Constructor Details
#initialize(name) ⇒ Group
Returns a new instance of Group.
14 15 16 |
# File 'app/models/hyrax/group.rb', line 14 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
18 19 20 |
# File 'app/models/hyrax/group.rb', line 18 def name @name end |