Class: Mailinator::Inbox

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

Class Method Summary collapse

Class Method Details

.get(to) ⇒ Object


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

def get(to)
  api = Api.new
  data = api.get('inbox', to: to)
  populate(data)
end