Sha256: 5714a307a0055b62490cc5cb7bf9eb92c6c03a360a29f8dad116a11ada49d072

Contents?: true

Size: 542 Bytes

Versions: 4

Compression:

Stored size: 542 Bytes

Contents

# frozen_string_literal: true

$LOAD_PATH.unshift File.dirname(__FILE__)
require 'dry-configurable'
require 'dry-schema'
require 'dry-struct'
require 'dry-types'
require 'forwardable'
require 'zeitwerk'

Zeitwerk::Loader.for_gem.setup

module LingutestClient
  extend Dry::Configurable

  setting :api_base,
          default: 'https://test.lingu.com/api/v1/',
          constructor: proc { |value| URI.parse(value) },
          reader: true

  setting :api_key,
          constructor: proc { |value| value.to_s },
          reader: true
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lingutest_client-0.2.6 lib/lingutest_client.rb
lingutest_client-0.2.5 lib/lingutest_client.rb
lingutest_client-0.2.4 lib/lingutest_client.rb
lingutest_client-0.2.3 lib/lingutest_client.rb