Class: Wings::MemberIds

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)


84
85
86
# File 'lib/wings/converter_value_mapper.rb', line 84

def self.handles?(value)
  value.first == :member_ids
end

Instance Method Details

#resultObject



88
89
90
91
# File 'lib/wings/converter_value_mapper.rb', line 88

def result
  members = value.last.map { |id| ActiveFedora::Base.find(id.to_s) }
  [:members, members]
end