Class: Valkyrie::Persistence::Fedora::Persister::ModelConverter::InternalValkyrieID
Instance Attribute Summary
Attributes inherited from ValueMapper
#calling_mapper, #value
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from ValueMapper
for, #initialize, register
Class Method Details
.handles?(value) ⇒ Boolean
184
185
186
|
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 184
def self.handles?(value)
value.is_a?(Property) && value.value.is_a?(Valkyrie::ID) && !value.value.to_s.include?("://")
end
|
Instance Method Details
#result ⇒ Object
188
189
190
|
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 188
def result
map_value(converted_value: value.adapter.id_to_uri(value.value))
end
|