Class: Mailinator::Models::Base

Inherits:
Hashie::Mash
  • Object
show all
Defined in:
lib/mailinator/model.rb

Direct Known Subclasses

Email, Entry, Inbox

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Base

Returns a new instance of Base


6
7
8
9
# File 'lib/mailinator/model.rb', line 6

def initialize(data)
  @data = data
  super(transform_data)
end

Instance Method Details

#originalObject


11
12
13
# File 'lib/mailinator/model.rb', line 11

def original
  @data
end

#transform_dataObject


15
16
17
# File 'lib/mailinator/model.rb', line 15

def transform_data
  @data
end