Class: Hydra::Config::PermissionsConfig::LeaseConfig
- Inherits:
-
Object
- Object
- Hydra::Config::PermissionsConfig::LeaseConfig
- Defined in:
- lib/hydra/config.rb
Instance Attribute Summary collapse
-
#expiration_date ⇒ Object
Returns the value of attribute expiration_date.
-
#history ⇒ Object
Returns the value of attribute history.
-
#visibility_after ⇒ Object
Returns the value of attribute visibility_after.
-
#visibility_during ⇒ Object
Returns the value of attribute visibility_during.
Instance Method Summary collapse
-
#initialize(values = {}, attributes = {prefix:''}) ⇒ LeaseConfig
constructor
A new instance of LeaseConfig.
- #solr_name(*args) ⇒ Object
Constructor Details
#initialize(values = {}, attributes = {prefix:''}) ⇒ LeaseConfig
Returns a new instance of LeaseConfig.
150 151 152 153 154 155 |
# File 'lib/hydra/config.rb', line 150 def initialize(values = {}, attributes={prefix:''}) @expiration_date = solr_name("#{attributes[:prefix]}lease_expiration_date", :stored_sortable, type: :date) @visibility_during = solr_name("visibility_during_lease", :symbol) @visibility_after = solr_name("visibility_after_lease", :symbol) @history = solr_name("lease_history", :symbol) end |
Instance Attribute Details
#expiration_date ⇒ Object
Returns the value of attribute expiration_date.
149 150 151 |
# File 'lib/hydra/config.rb', line 149 def expiration_date @expiration_date end |
#history ⇒ Object
Returns the value of attribute history.
149 150 151 |
# File 'lib/hydra/config.rb', line 149 def history @history end |
#visibility_after ⇒ Object
Returns the value of attribute visibility_after.
149 150 151 |
# File 'lib/hydra/config.rb', line 149 def visibility_after @visibility_after end |
#visibility_during ⇒ Object
Returns the value of attribute visibility_during.
149 150 151 |
# File 'lib/hydra/config.rb', line 149 def visibility_during @visibility_during end |
Instance Method Details
#solr_name(*args) ⇒ Object
157 158 159 |
# File 'lib/hydra/config.rb', line 157 def solr_name(*args) ActiveFedora::SolrService.solr_name(*args) end |