Class: Valkyrie::Config
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Valkyrie::Config
- Defined in:
- lib/valkyrie.rb
Instance Method Summary collapse
-
#initialize(hsh = {}) ⇒ Config
constructor
A new instance of Config.
- #metadata_adapter ⇒ Object
- #storage_adapter ⇒ Object
Constructor Details
#initialize(hsh = {}) ⇒ Config
Returns a new instance of Config.
77 78 79 |
# File 'lib/valkyrie.rb', line 77 def initialize(hsh = {}) super(defaults.merge(hsh)) end |
Instance Method Details
#metadata_adapter ⇒ Object
81 82 83 |
# File 'lib/valkyrie.rb', line 81 def Valkyrie::MetadataAdapter.find(super.to_sym) end |
#storage_adapter ⇒ Object
85 86 87 |
# File 'lib/valkyrie.rb', line 85 def storage_adapter Valkyrie::StorageAdapter.find(super.to_sym) end |