Sha256: 2b3f39f1fa564b83b2090db8d6369870e02698d15ad8d09ba2dd9d2ca0993e57
Contents?: true
Size: 491 Bytes
Versions: 3
Compression:
Stored size: 491 Bytes
Contents
module Chillout class Dispatcher def initialize(filter, server_side) @filter = filter @server_side = server_side end def dispatch_error(error) if @filter.deliver_error?(error) send_error(error) end end def send_error(error) @server_side.send_error(error) rescue HttpClient::NotSent end def send_creations(creations) @server_side.send_creations(creations) rescue HttpClient::NotSent end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chillout-0.2.2 | lib/chillout/dispatcher.rb |
chillout-0.2.1 | lib/chillout/dispatcher.rb |
chillout-0.2.0 | lib/chillout/dispatcher.rb |