diff --git a/lib/hydra_wrapper.rb b/lib/hydra_wrapper.rb index 6edf54c93..036f3158d 100644 --- a/lib/hydra_wrapper.rb +++ b/lib/hydra_wrapper.rb @@ -30,8 +30,8 @@ class HydraWrapper end # @return [Salmon] - def salmon - @salmon ||= @dispatcher_class.salmon(@user, Base64.decode64(@encoded_object_xml)) + def xml_factory + @xml_factory ||= @dispatcher_class.salmon(@user, Base64.decode64(@encoded_object_xml)) end # Group people on their receiving_urls @@ -45,7 +45,7 @@ class HydraWrapper # Inserts jobs for all @people def enqueue_batch grouped_people.each do |receive_url, people_for_receive_url| - if xml = salmon.xml_for(people_for_receive_url.first) + if xml = xml_factory.xml_for(people_for_receive_url.first) self.insert_job(receive_url, xml, people_for_receive_url) end end