Sha256: 8c350f3658b4c6314bcca5744789e682d3b58173174fd1834021478e9645452c

Contents?: true

Size: 592 Bytes

Versions: 9

Compression:

Stored size: 592 Bytes

Contents

# frozen_string_literal: true

module Trusona
  module Services
    #
    ## A service for interacting with TruCode TruCodes
    class TruCodesService < BaseService
      def initialize(
        client: Trusona::Api::HTTPClient.new(Trusona.config.api_host),
        mapper: Trusona::Mappers::TruCodeMapper.new
      )
        @client = client
        @mapper = mapper
        @resource_path = '/api/v2/trucodes'
      end

      def member_path(resource)
        [@resource_path, resource.id].join('/')
      end

      def verify_response(_response)
        true
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
trusona-2.5.3 lib/trusona/services/tru_codes_service.rb
trusona-2.5.2 lib/trusona/services/tru_codes_service.rb
trusona-2.5.1 lib/trusona/services/tru_codes_service.rb
trusona-2.5.0 lib/trusona/services/tru_codes_service.rb
trusona-2.4.0 lib/trusona/services/tru_codes_service.rb
trusona-2.3.0 lib/trusona/services/tru_codes_service.rb
trusona-2.2.0 lib/trusona/services/tru_codes_service.rb
trusona-2.1.0 lib/trusona/services/tru_codes_service.rb
trusona-2.0.0 lib/trusona/services/tru_codes_service.rb