summaryrefslogtreecommitdiff
path: root/app/finders/remote_mirror_finder.rb
blob: 420db0077aafc18e573f514ddf720a827cad4ba8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class RemoteMirrorFinder
  attr_accessor :params

  def initialize(params)
    @params = params
  end

  # rubocop: disable CodeReuse/ActiveRecord
  def execute
    RemoteMirror.find_by(id: params[:id])
  end
  # rubocop: enable CodeReuse/ActiveRecord
end