Sha256: ce545b3f41057b89ad941b701346a8b3ca5f678786d4ab33d6158f494e456b6c
Contents?: true
Size: 964 Bytes
Versions: 2
Compression:
Stored size: 964 Bytes
Contents
require 'dry-configurable' require 'faraday' require 'firebase_dynamic_link/client' require 'firebase_dynamic_link/version' module FirebaseDynamicLink extend Dry::Configurable class InvalidConfig < StandardError; end # You can change it to # FirebaseDynamicLink.adapter = :patron # FirebaseDynamicLink.adapter = :httpclient # FirebaseDynamicLink.adapter = :net_http_persistent # # And get the value by # FirebaseDynamicLink.adapter setting :adapter, Faraday.default_adapter setting :api_key # This domain will be used if dynamic_link_domain setting is nil # it raises error if both of settings are nil setting :default do # Firebase dynamic link domain setting(:dynamic_link_domain) setting :suffix do setting(:option, 'UNGUESSABLE') { |value| %w(SHORT UNGUESSABLE).include?(value) ? value : raise(FirebaseDynamicLink::InvalidConfig, 'default suffix option config is not valie') } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
firebase_dynamic_link-0.1.1 | lib/firebase_dynamic_link.rb |
firebase_dynamic_link-0.1.0 | lib/firebase_dynamic_link.rb |