Class: ModSpox::Messages::Incoming::Ping

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

Direct Known Subclasses

Pong

Instance Attribute Summary collapse

Attributes inherited from Message

#raw_content, #time

Instance Method Summary collapse

Constructor Details

#initialize(raw, server, string) ⇒ Ping

Returns a new instance of Ping.



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

def initialize(raw, server, string)
    super(raw)
    @server = server
    @string = string
end

Instance Attribute Details

#serverObject (readonly)

server of origin



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

def server
  @server
end

#stringObject (readonly)

string



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

def string
  @string
end