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