Class: Valkyrie::Persistence::Fedora::Persister::ModelConverter::DateTimeValue
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
223
224
225
|
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 223
def self.handles?(value)
value.is_a?(Property) && value.value.is_a?(DateTime)
end
|
Instance Method Details
#result ⇒ Object
227
228
229
230
231
232
|
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 227
def result
map_value(converted_value: RDF::Literal.new(
value.value,
datatype: PermissiveSchema.valkyrie_datetime
))
end
|