Class: ModSpox::Messages::Outgoing::Part

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel, reason = '') ⇒ Part

channel

channel to part

reason

reason for part

Part from channel. This command only allows single parts.



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

def initialize(channel, reason='')
    @channel = channel
    @reason = reason
end

Instance Attribute Details

#channelObject (readonly)

channel to part



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

def channel
  @channel
end

#reasonObject (readonly)

reason for part



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

def reason
  @reason
end