Class: HeyYou::Config::Email
- Inherits:
-
Object
- Object
- HeyYou::Config::Email
- Extended by:
- Configurable
- Defined in:
- lib/hey_you/config/email.rb
Constant Summary collapse
- MAIL_DELIVERY_METHOD =
:sendmail- DEFAULT_ACTION_MAILER_METHOD =
:send!- DEFAULT_DELIVERY_METHOD =
:deliver_now
Instance Attribute Summary collapse
-
#default_delivery_method ⇒ Object
Returns the value of attribute default_delivery_method.
-
#default_mailer_class ⇒ Object
Returns the value of attribute default_mailer_class.
-
#default_mailer_method ⇒ Object
Returns the value of attribute default_mailer_method.
-
#from ⇒ Object
Returns the value of attribute from.
-
#mail_delivery_method ⇒ Object
Returns the value of attribute mail_delivery_method.
-
#use_default_mailing ⇒ Object
Returns the value of attribute use_default_mailing.
Instance Method Summary collapse
-
#initialize ⇒ Email
constructor
A new instance of Email.
Methods included from Configurable
Constructor Details
#initialize ⇒ Email
22 23 24 25 26 27 28 |
# File 'lib/hey_you/config/email.rb', line 22 def initialize @mail_delivery_method ||= MAIL_DELIVERY_METHOD @use_default_mailing ||= !default_mailer_class.nil? @async ||= true @default_mailer_method ||= DEFAULT_ACTION_MAILER_METHOD @default_delivery_method ||= DEFAULT_DELIVERY_METHOD end |
Instance Attribute Details
#default_delivery_method ⇒ Object
Returns the value of attribute default_delivery_method.
13 14 15 |
# File 'lib/hey_you/config/email.rb', line 13 def default_delivery_method @default_delivery_method end |
#default_mailer_class ⇒ Object
Returns the value of attribute default_mailer_class.
13 14 15 |
# File 'lib/hey_you/config/email.rb', line 13 def default_mailer_class @default_mailer_class end |
#default_mailer_method ⇒ Object
Returns the value of attribute default_mailer_method.
13 14 15 |
# File 'lib/hey_you/config/email.rb', line 13 def default_mailer_method @default_mailer_method end |
#from ⇒ Object
Returns the value of attribute from.
13 14 15 |
# File 'lib/hey_you/config/email.rb', line 13 def from @from end |
#mail_delivery_method ⇒ Object
Returns the value of attribute mail_delivery_method.
13 14 15 |
# File 'lib/hey_you/config/email.rb', line 13 def mail_delivery_method @mail_delivery_method end |
#use_default_mailing ⇒ Object
Returns the value of attribute use_default_mailing.
13 14 15 |
# File 'lib/hey_you/config/email.rb', line 13 def use_default_mailing @use_default_mailing end |