Sha256: e3d8aaeeda3697453335e1d9fd8d471a6a3b49e4413f3dbd93ca8fd2a525eebb
Contents?: true
Size: 479 Bytes
Versions: 13
Compression:
Stored size: 479 Bytes
Contents
class DripDrop class BaseHandler private # Normalize Hash objs and DripDrop::Message objs into DripDrop::Message objs def dd_messagify(message) if message.is_a?(Hash) return DripDrop::Message.new(message[:name], :head => message[:head], :body => message[:body]) elsif message.is_a?(DripDrop::Message) return message else return message end end end end
Version data entries
13 entries across 13 versions & 1 rubygems