Class: Slack::Mailer::Configuration
- Inherits:
-
Object
- Object
- Slack::Mailer::Configuration
- Defined in:
- lib/slack_mailer/configuration.rb
Instance Attribute Summary collapse
-
#erb_in_templates ⇒ Object
Returns the value of attribute erb_in_templates.
-
#slack_hook_urls ⇒ Object
Returns the value of attribute slack_hook_urls.
-
#templates_path ⇒ Object
Returns the value of attribute templates_path.
-
#templates_type ⇒ Object
Returns the value of attribute templates_type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 |
# File 'lib/slack_mailer/configuration.rb', line 7 def initialize @templates_path = nil @templates_type = nil @erb_in_templates = false @slack_hook_urls = nil end |
Instance Attribute Details
#erb_in_templates ⇒ Object
Returns the value of attribute erb_in_templates.
5 6 7 |
# File 'lib/slack_mailer/configuration.rb', line 5 def erb_in_templates @erb_in_templates end |
#slack_hook_urls ⇒ Object
Returns the value of attribute slack_hook_urls.
5 6 7 |
# File 'lib/slack_mailer/configuration.rb', line 5 def slack_hook_urls @slack_hook_urls end |
#templates_path ⇒ Object
Returns the value of attribute templates_path.
5 6 7 |
# File 'lib/slack_mailer/configuration.rb', line 5 def templates_path @templates_path end |
#templates_type ⇒ Object
Returns the value of attribute templates_type.
5 6 7 |
# File 'lib/slack_mailer/configuration.rb', line 5 def templates_type @templates_type end |
Class Method Details
.config ⇒ Object
14 15 16 |
# File 'lib/slack_mailer/configuration.rb', line 14 def self.config @configuration ||= Slack::Mailer::Configuration.new end |
.configure {|config| ... } ⇒ Object
22 23 24 |
# File 'lib/slack_mailer/configuration.rb', line 22 def self.configure yield(config) end |
.reset ⇒ Object
18 19 20 |
# File 'lib/slack_mailer/configuration.rb', line 18 def self.reset @configuration = Slack::Mailer::Configuration.new end |