Class: Mailinator::Models::Entry

Inherits:
Base
  • Object
show all
Defined in:
lib/mailinator/models/entry.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #original, #transform_data

Constructor Details

This class inherits a constructor from Mailinator::Models::Base

Instance Method Details

#downloadObject


4
5
6
7
8
9
10
11
# File 'lib/mailinator/models/entry.rb', line 4

def download
  email = Mailinator::Email.get(id)
  if block_given?
    yield email
  else
    email
  end
end