Class: TmailAdapter
- Inherits:
-
Object
- Object
- TmailAdapter
- Defined in:
- lib/unfuddle_my_email/tmail_adapter.rb
Instance Method Summary collapse
- #body ⇒ Object
- #from ⇒ Object
-
#initialize(message) ⇒ TmailAdapter
constructor
A new instance of TmailAdapter.
- #subject ⇒ Object
Constructor Details
#initialize(message) ⇒ TmailAdapter
Returns a new instance of TmailAdapter.
4 5 6 |
# File 'lib/unfuddle_my_email/tmail_adapter.rb', line 4 def initialize() @message = Mail.new() end |
Instance Method Details
#body ⇒ Object
16 17 18 |
# File 'lib/unfuddle_my_email/tmail_adapter.rb', line 16 def body @message.body.decoded end |
#from ⇒ Object
12 13 14 |
# File 'lib/unfuddle_my_email/tmail_adapter.rb', line 12 def from @message.from.first end |
#subject ⇒ Object
8 9 10 |
# File 'lib/unfuddle_my_email/tmail_adapter.rb', line 8 def subject @message.subject end |