Module: Replyr

Defined in:
lib/replyr.rb,
lib/replyr/config.rb,
lib/replyr/engine.rb,
lib/replyr/version.rb,
lib/replyr/reply_email.rb,
lib/replyr/handle_reply.rb,
lib/replyr/reply_address.rb,
lib/generators/replyr/install_generator.rb

Defined Under Namespace

Modules: Generators, HandleReply Classes: Config, Engine, ReplyAddress, ReplyEmail

Constant Summary collapse

VERSION =
"0.0.7"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject

Returns the value of attribute config.



14
15
16
# File 'lib/replyr.rb', line 14

def config
  @config
end

.loggerObject

Returns the value of attribute logger.



14
15
16
# File 'lib/replyr.rb', line 14

def logger
  @logger
end

Class Method Details

.address_patternObject Also known as: mailman_route



24
25
26
# File 'lib/replyr.rb', line 24

def address_pattern
  "#{config.prefix}-%model_name%-%model_id%-%user_id%-%token%@#{config.host}"
end

.setup_loggerObject



20
21
22
# File 'lib/replyr.rb', line 20

def setup_logger
  @logger = (defined?(Rails) && Rails.logger) ? Rails.logger : Logger.new(STDOUT)
end