Class: Valkyrie::Config

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/valkyrie.rb

Instance Method Summary collapse

Constructor Details

#initialize(hsh = {}) ⇒ Config

Returns a new instance of Config.



73
74
75
# File 'lib/valkyrie.rb', line 73

def initialize(hsh = {})
  super(defaults.merge(hsh))
end

Instance Method Details

#metadata_adapterObject



77
78
79
# File 'lib/valkyrie.rb', line 77

def 
  Valkyrie::MetadataAdapter.find(super.to_sym)
end

#resource_class_resolver#call

The returned anonymous method (e.g. responds to #call) has a signature of an unamed parameter that is a string. Calling the anonymous method should return a Valkyrie::Resource from which Valkyrie will map the persisted data into.

Returns:

  • (#call)

    with method signature of 1

See Also:

  • for full interface


95
96
97
# File 'lib/valkyrie.rb', line 95

def resource_class_resolver
  super
end

#storage_adapterObject



81
82
83
# File 'lib/valkyrie.rb', line 81

def storage_adapter
  Valkyrie::StorageAdapter.find(super.to_sym)
end