Sha256: 5b32c582fc4b46db549ba210a95ad33f168bf19c054ed670c4ba5d4b24f9e16d

Contents?: true

Size: 425 Bytes

Versions: 12

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

module Trusona
  module Workers
    #
    ## Finds TruCodes
    class TruCodeFinder
      def initialize(service: Trusona::Services::TruCodesService.new)
        @service = service
      end

      def find(id)
        raise ArgumentError, 'Missing TruCode Id' unless id
        resource = Trusona::Resources::BaseResource.new(id: id)
        @service.get(resource)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
trusona-2.4.0 lib/trusona/workers/tru_code_finder.rb
trusona-2.3.0 lib/trusona/workers/tru_code_finder.rb
trusona-2.2.0 lib/trusona/workers/tru_code_finder.rb
trusona-2.1.0 lib/trusona/workers/tru_code_finder.rb
trusona-2.0.0 lib/trusona/workers/tru_code_finder.rb
trusona-1.0.1 lib/trusona/workers/tru_code_finder.rb
trusona-1.0.0 lib/trusona/workers/tru_code_finder.rb
trusona-0.20.0 lib/trusona/workers/tru_code_finder.rb
trusona-0.19.0 lib/trusona/workers/tru_code_finder.rb
trusona-0.18.2 lib/trusona/workers/tru_code_finder.rb
trusona-0.18.1 lib/trusona/workers/tru_code_finder.rb
trusona-0.16.0 lib/trusona/workers/tru_code_finder.rb