Class: Hyrax::Group

Inherits:
Object
  • Object
show all
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.

See Also:

Constant Summary

Constants included from GroupBehavior

Hyrax::GroupBehavior::DEFAULT_NAME_PREFIX

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



18
19
20
# File 'app/models/hyrax/group.rb', line 18

def name
  @name
end