lib/artemis_api/batch.rb in artemis_api-0.4.0 vs lib/artemis_api/batch.rb in artemis_api-0.5.1
- old
+ new
@@ -11,14 +11,14 @@
def self.find_all(client:, facility_id:, include: nil, filters: nil, page: nil)
client.find_all(self.json_type, facility_id: facility_id, include: include, filters: filters, page: page)
end
- def completions(include: nil)
+ def completions(include: nil, filters: {})
ArtemisApi::Completion.find_all(facility_id: facility_id,
client: client,
include: include,
- filters: {crop_batch_ids: [id]})
+ filters: {crop_batch_ids: [id]}.with_indifferent_access.merge(filters))
end
def completion(completion_id, include: nil)
ArtemisApi::Completion.find(id: completion_id,
facility_id: facility_id,