Class: SimpleApiKeyEngine::Configuration
- Inherits:
-
Hash
- Object
- Hash
- SimpleApiKeyEngine::Configuration
- Defined in:
- lib/simpleapikeyengine/provider_configuration.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *params) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/simpleapikeyengine/provider_configuration.rb', line 2 def method_missing(method, *params) if method.to_s =~ /^(.+)=$/ self[$1.to_sym] = params.first else self[method.to_sym] end end |