class Pakyow::Realtime::Channel

Attributes

name[R]
qualifier[R]

Public Class Methods

new(channel_name, qualifier = nil) click to toggle source
# File lib/pakyow/realtime/channel.rb, line 14
def initialize(channel_name, qualifier = nil)
  @name, @qualifier = channel_name, qualifier
end
parse(qualified_channel) click to toggle source
# File lib/pakyow/realtime/channel.rb, line 7
def parse(qualified_channel)
  Channel.new(*qualified_channel.split("::", 2))
end

Public Instance Methods

to_s() click to toggle source
# File lib/pakyow/realtime/channel.rb, line 18
def to_s
  [@name, @qualifier].join("::")
end