Class: Pakyow::Realtime::Channel
- Inherits:
-
Object
- Object
- Pakyow::Realtime::Channel
- Defined in:
- lib/pakyow/realtime/channel.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#qualifier ⇒ Object
readonly
Returns the value of attribute qualifier.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(channel_name, qualifier = nil) ⇒ Channel
constructor
A new instance of Channel.
- #to_s ⇒ Object
Constructor Details
#initialize(channel_name, qualifier = nil) ⇒ Channel
Returns a new instance of Channel.
14 15 16 |
# File 'lib/pakyow/realtime/channel.rb', line 14 def initialize(channel_name, qualifier = nil) @name, @qualifier = channel_name, qualifier end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
12 13 14 |
# File 'lib/pakyow/realtime/channel.rb', line 12 def name @name end |
#qualifier ⇒ Object (readonly)
Returns the value of attribute qualifier.
12 13 14 |
# File 'lib/pakyow/realtime/channel.rb', line 12 def qualifier @qualifier end |
Class Method Details
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/pakyow/realtime/channel.rb', line 18 def to_s [@name, @qualifier].join("::") end |