Class: Hyrax::Group
- Inherits:
-
Object
- Object
- Hyrax::Group
- Defined in:
- app/models/hyrax/group.rb
Constant Summary collapse
- DEFAULT_NAME_PREFIX =
'group/'
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name) ⇒ Group
constructor
A new instance of Group.
- #to_sipity_agent ⇒ Object
Constructor Details
#initialize(name) ⇒ Group
Returns a new instance of Group.
10 11 12 |
# File 'app/models/hyrax/group.rb', line 10 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'app/models/hyrax/group.rb', line 14 def name @name end |
Class Method Details
.name_prefix ⇒ Object
6 7 8 |
# File 'app/models/hyrax/group.rb', line 6 def self.name_prefix DEFAULT_NAME_PREFIX end |
Instance Method Details
#to_sipity_agent ⇒ Object
16 17 18 |
# File 'app/models/hyrax/group.rb', line 16 def to_sipity_agent sipity_agent || create_sipity_agent! end |