Class: BlabberMouth::Adapters::Base
- Inherits:
-
Object
- Object
- BlabberMouth::Adapters::Base
- Defined in:
- lib/blabber_mouth/adapters/base.rb
Overview
All mail adapters need to extend this class.
Instance Attribute Summary collapse
-
#bm_notifier ⇒ Object
The origina BlabberMouth object passed in.
Instance Method Summary collapse
-
#convert(*args) ⇒ Object
Convert the BlabberMouth object to the adapted object.
-
#deliverable(*args) ⇒ Object
The RAW encoded String ready for delivery via SMTP, Sendmail, etc...
-
#initialize(mail) ⇒ Base
constructor
:nodoc:.
-
#transformed(*args) ⇒ Object
The transformed (ie, converted, object).
Constructor Details
#initialize(mail) ⇒ Base
:nodoc:
9 10 11 |
# File 'lib/blabber_mouth/adapters/base.rb', line 9 def initialize(mail) # :nodoc: self.bm_notifier = mail end |
Instance Attribute Details
#bm_notifier ⇒ Object
The origina BlabberMouth object passed in.
7 8 9 |
# File 'lib/blabber_mouth/adapters/base.rb', line 7 def bm_notifier @bm_notifier end |
Instance Method Details
#convert(*args) ⇒ Object
Convert the BlabberMouth object to the adapted object.
19 20 21 |
# File 'lib/blabber_mouth/adapters/base.rb', line 19 def convert(*args) raise NoMethodError.new('convert') end |
#deliverable(*args) ⇒ Object
The RAW encoded String ready for delivery via SMTP, Sendmail, etc...
24 25 26 |
# File 'lib/blabber_mouth/adapters/base.rb', line 24 def deliverable(*args) raise NoMethodError.new('deliverable') end |
#transformed(*args) ⇒ Object
The transformed (ie, converted, object)
14 15 16 |
# File 'lib/blabber_mouth/adapters/base.rb', line 14 def transformed(*args) raise NoMethodError.new('transformed') end |