Class: ModSpox::Messages::Outgoing::Squery

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(service_name, message) ⇒ Squery

service_name

name of the service to query

message

message to send to service

Send message to a service



12
13
14
15
# File 'lib/mod_spox/messages/outgoing/Squery.rb', line 12

def initialize(service_name, message)
    @service_name = service_name
    @message = message
end

Instance Attribute Details

#messageObject (readonly)

message to send to service



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

def message
  @message
end

#service_nameObject (readonly)

service to query



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

def service_name
  @service_name
end