Class: LetterOpener::Configuration
- Inherits:
-
Object
- Object
- LetterOpener::Configuration
- Defined in:
- lib/letter_opener/configuration.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
Returns the value of attribute location.
-
#message_template ⇒ Object
Returns the value of attribute message_template.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 |
# File 'lib/letter_opener/configuration.rb', line 5 def initialize @location = Rails.root.join('tmp', 'letter_opener') if defined?(Rails) && Rails.respond_to?(:root) @message_template = 'default' end |
Instance Attribute Details
#location ⇒ Object
Returns the value of attribute location.
3 4 5 |
# File 'lib/letter_opener/configuration.rb', line 3 def location @location end |
#message_template ⇒ Object
Returns the value of attribute message_template.
3 4 5 |
# File 'lib/letter_opener/configuration.rb', line 3 def @message_template end |