Class: EmlToPdf::FileEmailProvider
- Inherits:
-
Object
- Object
- EmlToPdf::FileEmailProvider
- Defined in:
- lib/eml_to_pdf/file_email_provider.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
Instance Method Summary collapse
-
#initialize(input_path) ⇒ FileEmailProvider
constructor
A new instance of FileEmailProvider.
Constructor Details
#initialize(input_path) ⇒ FileEmailProvider
Returns a new instance of FileEmailProvider.
5 6 7 |
# File 'lib/eml_to_pdf/file_email_provider.rb', line 5 def initialize(input_path) @email = Mail.read(input_path) end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
9 10 11 |
# File 'lib/eml_to_pdf/file_email_provider.rb', line 9 def email @email end |