Class: LetterOpener::Configuration
- Inherits:
-
Object
- Object
- LetterOpener::Configuration
- Defined in:
- lib/letter_opener/configuration.rb
Instance Attribute Summary collapse
-
#file_uri_scheme ⇒ Object
Returns the value of attribute file_uri_scheme.
-
#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 9 |
# File 'lib/letter_opener/configuration.rb', line 5 def initialize @location = Rails.root.join('tmp', 'letter_opener') if defined?(Rails) && Rails.respond_to?(:root) && Rails.root @message_template = 'default' @file_uri_scheme = nil end |
Instance Attribute Details
#file_uri_scheme ⇒ Object
Returns the value of attribute file_uri_scheme.
3 4 5 |
# File 'lib/letter_opener/configuration.rb', line 3 def file_uri_scheme @file_uri_scheme end |
#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 |