Class: BounceFetcher::PopFetcher::Email

Inherits:
Object
  • Object
show all
Defined in:
lib/bounce_fetcher/pop_fetcher.rb

Instance Method Summary collapse

Constructor Details

#initialize(email) ⇒ Email

Returns a new instance of Email.



11
12
13
# File 'lib/bounce_fetcher/pop_fetcher.rb', line 11

def initialize(email)
  @email = email
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &block) ⇒ Object



19
20
21
# File 'lib/bounce_fetcher/pop_fetcher.rb', line 19

def method_missing(meth, *args, &block)
  parsed_email.send(meth, *args, &block)
end

Instance Method Details

#deleteObject



15
16
17
# File 'lib/bounce_fetcher/pop_fetcher.rb', line 15

def delete
  @email.delete
end