Class: Adhearsion::Configuration::XMPPConfiguration

Inherits:
AbstractConfiguration show all
Defined in:
lib/adhearsion/initializer/configuration.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ConfigurationEntryPoint

#add_configuration_for

Constructor Details

#initialize(options) ⇒ XMPPConfiguration

Returns a new instance of XMPPConfiguration.



284
285
286
287
288
289
290
# File 'lib/adhearsion/initializer/configuration.rb', line 284

def initialize(options)
  jid, password, server, port = check_options options
  @jid = jid
  @password = password
  @server = server
  @port = port
end

Instance Attribute Details

#jidObject

Returns the value of attribute jid.



283
284
285
# File 'lib/adhearsion/initializer/configuration.rb', line 283

def jid
  @jid
end

#passwordObject

Returns the value of attribute password.



283
284
285
# File 'lib/adhearsion/initializer/configuration.rb', line 283

def password
  @password
end

#portObject

Returns the value of attribute port.



283
284
285
# File 'lib/adhearsion/initializer/configuration.rb', line 283

def port
  @port
end

#serverObject

Returns the value of attribute server.



283
284
285
# File 'lib/adhearsion/initializer/configuration.rb', line 283

def server
  @server
end

Class Method Details

.default_portObject



293
294
295
# File 'lib/adhearsion/initializer/configuration.rb', line 293

def default_port
  5222
end