Class: Hyrax::Microdata
- Inherits:
-
Object
- Object
- Hyrax::Microdata
- Includes:
- Singleton
- Defined in:
- app/services/hyrax/microdata.rb
Constant Summary collapse
Class Attribute Summary collapse
-
.load_path ⇒ Object
Allow clients to register paths providing config data sources.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
Class Method Details
.fetch(key, options = {}) ⇒ Object
7 8 9 |
# File 'app/services/hyrax/microdata.rb', line 7 def self.fetch(key, = {}) instance.fetch(key, ) end |
.reload! ⇒ Object
27 28 29 |
# File 'app/services/hyrax/microdata.rb', line 27 def self.reload! instance.reload! end |
Instance Method Details
#fetch(key, options) ⇒ Object
11 12 13 |
# File 'app/services/hyrax/microdata.rb', line 11 def fetch(key, ) data.fetch(key) { [:default] } end |
#reload! ⇒ Object
31 32 33 |
# File 'app/services/hyrax/microdata.rb', line 31 def reload! @data = nil end |