Class: Mailinator::Email

Inherits:
Object
  • Object
show all
Defined in:
lib/mailinator/email.rb

Class Method Summary collapse

Class Method Details

.get(id) ⇒ Object


4
5
6
7
8
# File 'lib/mailinator/email.rb', line 4

def get(id)
  api = Api.new
  data = api.get('email', msgid: id)
  populate(data)
end