Class: Mailinator::Models::Inbox

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

Instance Method Summary collapse

Methods inherited from Base

#initialize, #original

Constructor Details

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

Instance Method Details

#transform_dataObject


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

def transform_data
  {
    messages: @data['messages'].map { |entry| Entry.new(entry) }
  }
end