Class: Umwelt::Abstract::Mapper

Inherits:
Interactor show all
Defined in:
lib/umwelt/abstract/mapper.rb

Instance Method Summary collapse

Methods inherited from Interactor

#prove

Instance Method Details

#fill(struct, data) ⇒ Object



11
12
13
14
15
# File 'lib/umwelt/abstract/mapper.rb', line 11

def fill(struct, data)
  struct.new(data)
rescue ArgumentError => e
  error! [self.class.name, e.message, data]
end