Class: Discord::Mailer::Configuration
- Inherits:
-
Object
- Object
- Discord::Mailer::Configuration
- Defined in:
- lib/discord_mailer/configuration.rb
Instance Attribute Summary collapse
-
#discord_url ⇒ Object
Returns the value of attribute discord_url.
-
#erb_in_templates ⇒ Object
Returns the value of attribute erb_in_templates.
-
#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/discord_mailer/configuration.rb', line 7 def initialize @templates_path = nil @templates_type = nil @erb_in_templates = false @discord_url = nil end |
Instance Attribute Details
#discord_url ⇒ Object
Returns the value of attribute discord_url.
5 6 7 |
# File 'lib/discord_mailer/configuration.rb', line 5 def discord_url @discord_url end |
#erb_in_templates ⇒ Object
Returns the value of attribute erb_in_templates.
5 6 7 |
# File 'lib/discord_mailer/configuration.rb', line 5 def erb_in_templates @erb_in_templates end |
#templates_path ⇒ Object
Returns the value of attribute templates_path.
5 6 7 |
# File 'lib/discord_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/discord_mailer/configuration.rb', line 5 def templates_type @templates_type end |
Class Method Details
.config ⇒ Object
15 16 17 |
# File 'lib/discord_mailer/configuration.rb', line 15 def config @configuration ||= Discord::Mailer::Configuration.new end |
.configure {|config| ... } ⇒ Object
23 24 25 |
# File 'lib/discord_mailer/configuration.rb', line 23 def configure yield(config) end |
.reset ⇒ Object
19 20 21 |
# File 'lib/discord_mailer/configuration.rb', line 19 def reset @configuration = Discord::Mailer::Configuration.new end |