class PostDB::Mail
Attributes
mail_location[R]
The template path to the mail location
Public Class Methods
setup_with_configuration!()
click to toggle source
Setup the mail configuration
Example:
>> PostDB::Mail.setup_with_configuration! => nil
# File lib/postdb/mail.rb, line 14 def setup_with_configuration! configuration = PostDB::Configuration[:mail] unless configuration.is_a?(Hash) raise PostDB::SetupError.new(:missing_mail_args) end unless configuration[:location] raise PostDB::SetupError.new(:missing_mail_location) end @mail_location = PostDB::MailLocation.new(configuration[:location]) nil end