class Bearychat::RTM
Constants
- MESSAGE_URL
Attributes
http_client[RW]
token[RW]
Public Class Methods
new(token)
click to toggle source
# File lib/bearychat/rtm.rb, line 10 def initialize(token) self.http_client = HttpClient.new(MESSAGE_URL) self.token = token end
Public Instance Methods
send(message)
click to toggle source
# File lib/bearychat/rtm.rb, line 15 def send(message) http_client.post_json({ token: token }.merge(message).to_json) end