Method: Yaoc::OneToManyMapperChain#load_all

Defined in:
lib/yaoc/one_to_many_mapper_chain.rb

#load_all(input_object, objects_to_fill = []) ⇒ Object



13
14
15
16
17
18
19
20
21
22
# File 'lib/yaoc/one_to_many_mapper_chain.rb', line 13

def load_all(input_object, objects_to_fill=[])
  objects_to_fill = Array(objects_to_fill)
  results = []

  each_object_with_converter(objects_to_fill) do |converter, object_to_fill|
    results << converter.load(input_object, object_to_fill)
  end

  self.last_result = results
end