Module: Veriff::Configuration
- Included in:
- Veriff
- Defined in:
- lib/veriff/configuration.rb
Defined Under Namespace
Classes: Config
Constant Summary collapse
- DEFAULT_CONFIG =
{ base_uri: 'https://api.veriff.me/v1' }.freeze
Instance Method Summary collapse
Instance Method Details
#configuration ⇒ Object
11 12 13 |
# File 'lib/veriff/configuration.rb', line 11 def configuration @configuration ||= Config.new(**DEFAULT_CONFIG) end |
#configure {|configuration| ... } ⇒ Object
15 16 17 18 |
# File 'lib/veriff/configuration.rb', line 15 def configure yield(configuration) reload_config end |
#reload_config ⇒ Object
20 21 22 23 |
# File 'lib/veriff/configuration.rb', line 20 def reload_config base_uri configuration.base_uri true end |