Module: LingutestClient::Configuration
- Included in:
- LingutestClient
- Defined in:
- lib/lingutest_client/configuration.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/lingutest_client/configuration.rb', line 7 def self.included(base) base.extend Dry::Configurable base.class_eval do setting(:api_base, 'https://test.lingu.com/api/v1/', reader: true) do |value| URI.parse(value) end setting(:api_key, reader: true, &:to_s) end end |