Method: HaveAPI::Authentication::Token::Provider.with_config
- Defined in:
- lib/haveapi/authentication/token/provider.rb
.with_config(cfg) ⇒ Object
Configure the token provider
121 122 123 124 125 126 127 |
# File 'lib/haveapi/authentication/token/provider.rb', line 121 def self.with_config(cfg) Module.new do define_singleton_method(:new) do |*args| Provider.new(*args, cfg) end end end |