class Frequencyio::Channel

Attributes

channel_id[RW]
token[RW]

Public Class Methods

new(id, token) click to toggle source
# File lib/frequencyio/channel.rb, line 7
def initialize(id, token)
  @channel_id = id
  @token      = token
end

Public Instance Methods

event(message) click to toggle source

Sends an event to the current channel

# File lib/frequencyio/channel.rb, line 15
def event(message)
  Freqnecyio.event(@channel_id, @token, message)
end