16 lines
287 B
Ruby
16 lines
287 B
Ruby
|
# 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
|