Sha256: df2d1e86759267f10e6e7a8258da55c502c2c404725c1b294e73874838b0b243
Contents?: true
Size: 229 Bytes
Versions: 1
Compression:
Stored size: 229 Bytes
Contents
require "rest_client" module CatsocketClient class Publisher < Struct.new(:url, :api_key) def publish(channel, data) RestClient.post(url, guid: 0, api_key: api_key, channel: channel, data: data ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
catsocket_client-0.0.2 | lib/catsocket_client/publisher.rb |