Class: ModSpox::Messages::Outgoing::User
- Inherits:
-
Object
- Object
- ModSpox::Messages::Outgoing::User
- Defined in:
- lib/mod_spox/messages/outgoing/User.rb
Instance Attribute Summary collapse
-
#mode ⇒ Object
readonly
mode of user.
-
#real_name ⇒ Object
readonly
real name of user.
-
#username ⇒ Object
readonly
username of user.
Instance Method Summary collapse
-
#initialize(username, real_name, mode = 0) ⇒ User
constructor
- username
- username of user real_name
- real name of user mode
-
default mode (see RFC 2812 for proper mode values) Create new User message.
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
#mode ⇒ Object (readonly)
mode of user
10 11 12 |
# File 'lib/mod_spox/messages/outgoing/User.rb', line 10 def mode @mode end |
#real_name ⇒ Object (readonly)
real name of user
8 9 10 |
# File 'lib/mod_spox/messages/outgoing/User.rb', line 8 def real_name @real_name end |
#username ⇒ Object (readonly)
username of user
6 7 8 |
# File 'lib/mod_spox/messages/outgoing/User.rb', line 6 def username @username end |