Class: LetterOpener::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/letter_opener/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#locationObject

Returns the value of attribute location.



3
4
5
# File 'lib/letter_opener/configuration.rb', line 3

def location
  @location
end

#message_templateObject

Returns the value of attribute message_template.



3
4
5
# File 'lib/letter_opener/configuration.rb', line 3

def message_template
  @message_template
end