Class: Courrier::Configuration::ProviderConfig
- Inherits:
-
Object
- Object
- Courrier::Configuration::ProviderConfig
show all
- Defined in:
- lib/courrier/configuration/providers.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of ProviderConfig.
24
25
26
|
# File 'lib/courrier/configuration/providers.rb', line 24
def initialize
@options = {}
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, value = nil) ⇒ Object
28
29
30
31
32
33
34
|
# File 'lib/courrier/configuration/providers.rb', line 28
def method_missing(name, value = nil, **)
option_name = name.to_s.chomp("=").to_sym
return @options[option_name] = value if name.to_s.end_with?("=")
@options[name.to_sym]
end
|
Instance Method Details
#respond_to_missing?(name, include_private = false) ⇒ Boolean
36
|
# File 'lib/courrier/configuration/providers.rb', line 36
def respond_to_missing?(name, include_private = false) = true
|
#to_h ⇒ Object
38
|
# File 'lib/courrier/configuration/providers.rb', line 38
def to_h = @options
|