Class: ModSpox::Messages::Outgoing::User

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username, real_name, mode = 0) ⇒ User

username

username of user

real_name

real name of user

mode

default mode (see RFC 2812 for proper mode values)

Create new User message



15
16
17
18
19
# File 'lib/mod_spox/messages/outgoing/User.rb', line 15

def initialize(username, real_name, mode=0)
    @username = username
    @real_name = real_name
    @mode = mode
end

Instance Attribute Details

#modeObject (readonly)

mode of user



10
11
12
# File 'lib/mod_spox/messages/outgoing/User.rb', line 10

def mode
  @mode
end

#real_nameObject (readonly)

real name of user



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

def real_name
  @real_name
end

#usernameObject (readonly)

username of user



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

def username
  @username
end