Class: Valkyrie::Persistence::Fedora::Persister::OrmConverter::GraphToAttributes::ValkyrieIDValue
- Inherits:
-
ValueMapper
- Object
- ValueMapper
- Valkyrie::Persistence::Fedora::Persister::OrmConverter::GraphToAttributes::ValkyrieIDValue
show all
- Defined in:
- lib/valkyrie/persistence/fedora/persister/orm_converter.rb
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
230
231
232
|
# File 'lib/valkyrie/persistence/fedora/persister/orm_converter.rb', line 230
def self.handles?(value)
value.statement.object.is_a?(RDF::Literal) && value.statement.object.datatype == PermissiveSchema.valkyrie_id
end
|
Instance Method Details
#result ⇒ Object
234
235
236
237
|
# File 'lib/valkyrie/persistence/fedora/persister/orm_converter.rb', line 234
def result
value.statement.object = Valkyrie::ID.new(value.statement.object.to_s)
calling_mapper.for(Property.new(statement: value.statement, scope: value.scope, adapter: value.adapter)).result
end
|