Sha256: 71c52ff058e63e77b87d2f047926f3f7bdb953648a57653fc1c4af581bd537f9

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

module Chillout
  class Dispatcher
    class SendCreationsFailed < StandardError
    end

    def initialize(filter, server_side)
      @filter      = filter
      @server_side = server_side
    end

    def send_creations(creations)
      @server_side.send_creations(creations)
    rescue HttpClient::NotSent
      raise SendCreationsFailed.new
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chillout-0.3.0 lib/chillout/dispatcher.rb