Class: Valkyrie::Persistence::Postgres::ORMConverter::RDFMetadata::URIValue
- Inherits:
-
ValueMapper
- Object
- ValueMapper
- Valkyrie::Persistence::Postgres::ORMConverter::RDFMetadata::URIValue
- Defined in:
- lib/valkyrie/persistence/postgres/orm_converter.rb
Overview
Converts stored URIs into RDF::URIs
Instance Attribute Summary
Attributes inherited from ValueMapper
Class Method Summary collapse
-
.handles?(value) ⇒ Boolean
Determines whether or not a value is a Hash containing the key “@id”.
Instance Method Summary collapse
-
#result ⇒ RDF::URI
Constructs a RDF::URI object using the URI keyed to @id in the value.
Methods inherited from ValueMapper
Constructor Details
This class inherits a constructor from Valkyrie::ValueMapper
Class Method Details
.handles?(value) ⇒ Boolean
Determines whether or not a value is a Hash containing the key “@id”
154 155 156 |
# File 'lib/valkyrie/persistence/postgres/orm_converter.rb', line 154 def self.handles?(value) value.is_a?(Hash) && value["@id"] end |