Class: Hydra::Config::PermissionsConfig::EmbargoConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/hydra/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(values = {}, attributes = {prefix:''}) ⇒ EmbargoConfig

Returns a new instance of EmbargoConfig.



136
137
138
139
140
141
# File 'lib/hydra/config.rb', line 136

def initialize(values = {}, attributes={prefix:''})
  @release_date = solr_name("#{attributes[:prefix]}embargo_release_date", :stored_sortable, type: :date)
  @visibility_during = solr_name("visibility_during_embargo", :symbol)
  @visibility_after = solr_name("visibility_after_embargo", :symbol)
  @history = solr_name("embargo_history", :symbol)
end

Instance Attribute Details

#historyObject

Returns the value of attribute history.



135
136
137
# File 'lib/hydra/config.rb', line 135

def history
  @history
end

#release_dateObject

Returns the value of attribute release_date.



135
136
137
# File 'lib/hydra/config.rb', line 135

def release_date
  @release_date
end

#visibility_afterObject

Returns the value of attribute visibility_after.



135
136
137
# File 'lib/hydra/config.rb', line 135

def visibility_after
  @visibility_after
end

#visibility_duringObject

Returns the value of attribute visibility_during.



135
136
137
# File 'lib/hydra/config.rb', line 135

def visibility_during
  @visibility_during
end

Instance Method Details

#solr_name(*args) ⇒ Object



143
144
145
# File 'lib/hydra/config.rb', line 143

def solr_name(*args)
  ActiveFedora::SolrService.solr_name(*args)
end