Class: ModSpox::Messages::Incoming::YourHost

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

Instance Attribute Summary collapse

Attributes inherited from Message

#raw_content, #time

Instance Method Summary collapse

Constructor Details

#initialize(raw, server, version) ⇒ YourHost

Returns a new instance of YourHost.



10
11
12
13
14
# File 'lib/mod_spox/messages/incoming/YourHost.rb', line 10

def initialize(raw, server, version)
    super(raw)
    @servername = server
    @version = version
end

Instance Attribute Details

#servernameObject (readonly)

name of server bot is connected to



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

def servername
  @servername
end

#versionObject (readonly)

version of server bot is connected to



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

def version
  @version
end