Class: Wings::NestedEmbargoValue
- Inherits:
-
Valkyrie::ValueMapper
- Object
- Valkyrie::ValueMapper
- Wings::NestedEmbargoValue
- Defined in:
- lib/wings/converter_value_mapper.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.handles?(value) ⇒ Boolean
155 156 157 |
# File 'lib/wings/converter_value_mapper.rb', line 155 def self.handles?(value) value.first == :embargo end |
Instance Method Details
#result ⇒ Object
159 160 161 162 163 |
# File 'lib/wings/converter_value_mapper.rb', line 159 def result = ActiveFedoraConverter.new(resource: Hyrax::Embargo.new(**value.last)).convert [:embargo, ] end |