Class: EmlToPdf::FileEmailProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/eml_to_pdf/file_email_provider.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#emailObject (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