diff options
Diffstat (limited to 'app/models/service_list.rb')
-rw-r--r-- | app/models/service_list.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/app/models/service_list.rb b/app/models/service_list.rb deleted file mode 100644 index 8a52539d128..00000000000 --- a/app/models/service_list.rb +++ /dev/null @@ -1,27 +0,0 @@ -# frozen_string_literal: true - -class ServiceList - def initialize(batch, service_hash, association) - @batch = batch - @service_hash = service_hash - @association = association - end - - def to_array - [Integration, columns, values] - end - - private - - attr_reader :batch, :service_hash, :association - - def columns - service_hash.keys << "#{association}_id" - end - - def values - batch.select(:id).map do |record| - service_hash.values << record.id - end - end -end |