Class: Setl::Destination

Inherits:
Delegator show all
Defined in:
lib/setl/delegates.rb

Instance Method Summary collapse

Methods inherited from Delegator

#initialize

Constructor Details

This class inherits a constructor from Setl::Delegator

Instance Method Details

#call(row, &block) ⇒ Object



37
38
39
40
41
# File 'lib/setl/delegates.rb', line 37

def call(row, &block)
  item.call(row, &block)
rescue StandardError => e
  error_handler.(DestinationError.new(row, "Failed to send #{row}", e))
end