Module: MailPlugger
- Defined in:
- lib/mail_plugger.rb,
lib/mail_plugger/error.rb,
lib/mail_plugger/railtie.rb,
lib/mail_plugger/version.rb,
lib/mail_plugger/mail_helper.rb,
lib/mail_plugger/delivery_method.rb
Defined Under Namespace
Modules: MailHelper Classes: DeliveryMethod, Error, Railtie
Constant Summary collapse
- VERSION =
'1.8.0'
Class Attribute Summary collapse
-
.client ⇒ Object
readonly
Returns the value of attribute client.
-
.default_delivery_options ⇒ Object
readonly
Returns the value of attribute default_delivery_options.
-
.default_delivery_system ⇒ Object
Returns the value of attribute default_delivery_system.
-
.delivery_options ⇒ Object
readonly
Returns the value of attribute delivery_options.
-
.delivery_settings ⇒ Object
readonly
Returns the value of attribute delivery_settings.
-
.delivery_systems ⇒ Object
readonly
Returns the value of attribute delivery_systems.
-
.rotatable_delivery_systems ⇒ Object
readonly
Returns the value of attribute rotatable_delivery_systems.
-
.sending_method ⇒ Object
Returns the value of attribute sending_method.
Class Method Summary collapse
-
.configure ⇒ Object
Configure MailPlugger.
-
.plug_in(delivery_system) ⇒ Object
Plug in SMTP(s) or defined API(s) class(es).
Class Attribute Details
.client ⇒ Object (readonly)
Returns the value of attribute client.
19 20 21 |
# File 'lib/mail_plugger.rb', line 19 def client @client end |
.default_delivery_options ⇒ Object (readonly)
Returns the value of attribute default_delivery_options.
19 20 21 |
# File 'lib/mail_plugger.rb', line 19 def end |
.default_delivery_system ⇒ Object
Returns the value of attribute default_delivery_system.
16 17 18 |
# File 'lib/mail_plugger.rb', line 16 def default_delivery_system @default_delivery_system end |
.delivery_options ⇒ Object (readonly)
Returns the value of attribute delivery_options.
19 20 21 |
# File 'lib/mail_plugger.rb', line 19 def end |
.delivery_settings ⇒ Object (readonly)
Returns the value of attribute delivery_settings.
19 20 21 |
# File 'lib/mail_plugger.rb', line 19 def delivery_settings @delivery_settings end |
.delivery_systems ⇒ Object (readonly)
Returns the value of attribute delivery_systems.
19 20 21 |
# File 'lib/mail_plugger.rb', line 19 def delivery_systems @delivery_systems end |
.rotatable_delivery_systems ⇒ Object (readonly)
Returns the value of attribute rotatable_delivery_systems.
19 20 21 |
# File 'lib/mail_plugger.rb', line 19 def rotatable_delivery_systems @rotatable_delivery_systems end |
.sending_method ⇒ Object
Returns the value of attribute sending_method.
16 17 18 |
# File 'lib/mail_plugger.rb', line 16 def sending_method @sending_method end |
Class Method Details
.configure ⇒ Object
Configure MailPlugger.
41 42 43 44 45 |
# File 'lib/mail_plugger.rb', line 41 def configure yield self rescue NoMethodError => e raise Error::WrongConfigureOption, e. end |
.plug_in(delivery_system) ⇒ Object
Plug in SMTP(s) or defined API(s) class(es).
126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/mail_plugger.rb', line 126 def plug_in(delivery_system) check_value(delivery_system) @delivery_system = delivery_system (@delivery_systems ||= []) << delivery_system @rotatable_delivery_systems = @delivery_systems.cycle yield self rescue NoMethodError => e raise Error::WrongPlugInOption, e. end |