Class: ModSpox::Messages::Outgoing::Join

Inherits:
Object
  • Object
show all
Defined in:
lib/mod_spox/messages/outgoing/Join.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel, key = nil) ⇒ Join

channel

channel to join

key

channel key if needed

Join the channel. This command only allows single joins.



12
13
14
15
# File 'lib/mod_spox/messages/outgoing/Join.rb', line 12

def initialize(channel, key=nil)
    @channel = channel
    @key = key
end

Instance Attribute Details

#channelObject (readonly)

channel to join



6
7
8
# File 'lib/mod_spox/messages/outgoing/Join.rb', line 6

def channel
  @channel
end

#keyObject (readonly)

key for channel



8
9
10
# File 'lib/mod_spox/messages/outgoing/Join.rb', line 8

def key
  @key
end