Class: Wings::IdValueMapper

Inherits:
Valkyrie::ValueMapper
  • Object
show all
Defined in:
lib/wings/converter_value_mapper.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.handles?(value) ⇒ Boolean

Returns:

  • (Boolean)


169
170
171
# File 'lib/wings/converter_value_mapper.rb', line 169

def self.handles?(value)
  value.last.is_a? ::Valkyrie::ID
end

Instance Method Details

#resultObject



173
174
175
# File 'lib/wings/converter_value_mapper.rb', line 173

def result
  [value.first, values]
end

#valuesObject



177
178
179
# File 'lib/wings/converter_value_mapper.rb', line 177

def values
  value.last.id
end