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
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_schemeObject

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

#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