Sha256: 6899ca469098136f75585a8794deef1006bf93eb4c3f52b05cfb80981efde700

Contents?: true

Size: 397 Bytes

Versions: 4

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

module Trusona
  module Workers
    class PairedTruCodeFinder
      def initialize(service: Trusona::Services::PairedTruCodeService.new)
        @service = service
      end

      def find(trucode_id)
        raise 'A TruCode ID is required' unless trucode_id

        @service.get(Trusona::Resources::PairedTruCode.new(id: trucode_id))
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trusona-2.4.0 lib/trusona/workers/paired_tru_code_finder.rb
trusona-2.3.0 lib/trusona/workers/paired_tru_code_finder.rb
trusona-2.2.0 lib/trusona/workers/paired_tru_code_finder.rb
trusona-2.1.0 lib/trusona/workers/paired_tru_code_finder.rb