Class: EmailSpec::Extractors::Base
- Inherits:
-
Object
- Object
- EmailSpec::Extractors::Base
- Defined in:
- lib/email_spec/extractors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#mail ⇒ Object
Returns the value of attribute mail.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(mail) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(mail) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/email_spec/extractors.rb', line 6 def initialize(mail) @mail = mail end |
Instance Attribute Details
#mail ⇒ Object
Returns the value of attribute mail.
4 5 6 |
# File 'lib/email_spec/extractors.rb', line 4 def mail @mail end |
Instance Method Details
#call ⇒ Object
10 11 12 |
# File 'lib/email_spec/extractors.rb', line 10 def call part_body ? HTMLEntities.new.decode(part_body) : '' end |