Class: ModSpox::Messages::Outgoing::Stats

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(query, target = '') ⇒ Stats

query

single character for query

target

target server to query (or connected server if unset)



11
12
13
14
# File 'lib/mod_spox/messages/outgoing/Stats.rb', line 11

def initialize(query, target='')
    @query = query
    @target = target
end

Instance Attribute Details

#queryObject (readonly)

the query



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

def query
  @query
end

#targetObject (readonly)

target server



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

def target
  @target
end