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
-
.config ⇒ Object
Returns the value of attribute config.
-
.logger ⇒ Object
Returns the value of attribute logger.
Class Method Summary collapse
- .address_pattern ⇒ Object (also: mailman_route)
- .setup_logger ⇒ Object
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
14 15 16 |
# File 'lib/replyr.rb', line 14 def config @config end |
.logger ⇒ Object
Returns the value of attribute logger.
14 15 16 |
# File 'lib/replyr.rb', line 14 def logger @logger end |
Class Method Details
.address_pattern ⇒ Object 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_logger ⇒ Object
20 21 22 |
# File 'lib/replyr.rb', line 20 def setup_logger @logger = (defined?(Rails) && Rails.logger) ? Rails.logger : Logger.new(STDOUT) end |