Sha256: 4116bdaace57f2bd542bbf1dfa3133539b7f825ab75a21e8f32d6a112b0db74d
Contents?: true
Size: 251 Bytes
Versions: 3
Compression:
Stored size: 251 Bytes
Contents
require 'json' module Dboard class Publisher def self.publish(source, data) Api::Client.post("/sources/#{source}", :body => { :data => data.to_json }) rescue SocketError => ex puts "SocketError: #{ex.message}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dboard-0.0.3 | lib/publisher.rb |
dboard-0.0.2 | lib/publisher.rb |
dboard-0.0.1 | lib/publisher.rb |