class Pushould::Client
Attributes
url[R]
Public Class Methods
new(url)
click to toggle source
# File lib/pushould/client.rb, line 9 def initialize(url) @url = url end
Public Instance Methods
trigger(room: _room, event: _event, data: _data)
click to toggle source
# File lib/pushould/client.rb, line 13 def trigger(room: _room, event: _event, data: _data) data = { room: room, event: event, custom: data }.to_json RestClient::Resource.new(@url) .get(params: { data: data }, content_type: 'application/json', accept: 'application/json') end