Sha256: 5ba04f8d269c8b47aad17606b1f04edfa63307731d9fe15ef25c308891eb8e6d
Contents?: true
Size: 452 Bytes
Versions: 12
Compression:
Stored size: 452 Bytes
Contents
# frozen_string_literal: true module Pakyow module Realtime class Channel class << self def parse(qualified_channel) Channel.new(*qualified_channel.split("::", 2)) end end attr_reader :name, :qualifier def initialize(channel_name, qualifier = nil) @name, @qualifier = channel_name, qualifier end def to_s [@name, @qualifier].join("::") end end end end
Version data entries
12 entries across 12 versions & 1 rubygems