Class: Valkyrie::Persistence::Fedora::Persister::ModelConverter::SymbolValue
- Inherits:
-
MappedFedoraValue
- Object
- ValueMapper
- MappedFedoraValue
- Valkyrie::Persistence::Fedora::Persister::ModelConverter::SymbolValue
- Defined in:
- lib/valkyrie/persistence/fedora/persister/model_converter.rb
Overview
Class for mapping Property objects for Symbol values
Instance Attribute Summary
Attributes inherited from ValueMapper
Class Method Summary collapse
-
.handles?(value) ⇒ Boolean
Determines whether or not the value is a Property for Symbol values.
Instance Method Summary collapse
-
#result ⇒ Valkyrie::Persistence::Fedora::Persister::ModelConverter::Property
Generates the Property for the Symbol value The Symbol value is converted into a String.
Methods inherited from ValueMapper
Constructor Details
This class inherits a constructor from Valkyrie::ValueMapper
Class Method Details
.handles?(value) ⇒ Boolean
Determines whether or not the value is a Property for Symbol values
549 550 551 |
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 549 def self.handles?(value) value.is_a?(Property) && value.value.is_a?(Symbol) end |
Instance Method Details
#result ⇒ Valkyrie::Persistence::Fedora::Persister::ModelConverter::Property
Generates the Property for the Symbol value The Symbol value is converted into a String
556 557 558 |
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 556 def result map_value(converted_value: value.value.to_s) end |