Class: ModSpox::Messages::Incoming::MyInfo

Inherits:
Message
  • Object
show all
Defined in:
lib/mod_spox/messages/incoming/MyInfo.rb

Instance Attribute Summary collapse

Attributes inherited from Message

#raw_content, #time

Instance Method Summary collapse

Constructor Details

#initialize(raw, server, version, umodes, cmodes) ⇒ MyInfo

Returns a new instance of MyInfo.



14
15
16
17
18
19
20
# File 'lib/mod_spox/messages/incoming/MyInfo.rb', line 14

def initialize(raw, server, version, umodes, cmodes)
    super(raw)
    @servername = server
    @version = version
    @user_modes = umodes
    @channel_modes = cmodes
end

Instance Attribute Details

#channel_modesObject (readonly)

channel modes supported by server



13
14
15
# File 'lib/mod_spox/messages/incoming/MyInfo.rb', line 13

def channel_modes
  @channel_modes
end

#servernameObject (readonly)

name of server connected to



7
8
9
# File 'lib/mod_spox/messages/incoming/MyInfo.rb', line 7

def servername
  @servername
end

#user_modesObject (readonly)

user modes supported by server



11
12
13
# File 'lib/mod_spox/messages/incoming/MyInfo.rb', line 11

def user_modes
  @user_modes
end

#versionObject (readonly)

version of server connected to



9
10
11
# File 'lib/mod_spox/messages/incoming/MyInfo.rb', line 9

def version
  @version
end