Sha256: eab875a8d26e469ed64769cb1a0653f42e57780a5b42158b69500afb79e8419f
Contents?: true
Size: 654 Bytes
Versions: 8
Compression:
Stored size: 654 Bytes
Contents
# frozen_string_literal: true module Trusona module Workers # ## Finds Trusonafications class TrusonaficationFinder def initialize(service: nil) @service = service || Trusona::Services::TrusonaficationService.new end def find(trusonafication_id) if trusonafication_id.nil? || trusonafication_id.empty? raise( Trusona::InvalidResourceError, 'Trusonafication Id cannot be empty or nil' ) end resource = Trusona::Resources::Trusonafication.new( id: trusonafication_id ) @service.get(resource) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems