Class: Hyrax::Group

Inherits:
Object
  • Object
show all
Defined in:
app/models/hyrax/group.rb

Constant Summary collapse

DEFAULT_NAME_PREFIX =
'group/'

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#nameObject (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_prefixObject


6
7
8
# File 'app/models/hyrax/group.rb', line 6

def self.name_prefix
  DEFAULT_NAME_PREFIX
end

Instance Method Details

#to_sipity_agentObject


16
17
18
# File 'app/models/hyrax/group.rb', line 16

def to_sipity_agent
  sipity_agent || create_sipity_agent!
end