Class: XmppServer::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/xmpp_server/config.rb

Constant Summary collapse

@@server =
"weishanke.com"
@@username =
"tester001"
@@password =
"123456"

Class Method Summary collapse

Class Method Details

.config {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



27
28
29
# File 'lib/xmpp_server/config.rb', line 27

def config
	yield self
end

.passwordObject



13
# File 'lib/xmpp_server/config.rb', line 13

def password; @@password; end

.password=(password) ⇒ Object



23
24
25
# File 'lib/xmpp_server/config.rb', line 23

def password=(password)
	@@password = password
end

.serverObject



11
# File 'lib/xmpp_server/config.rb', line 11

def server; @@server ;end

.server=(server) ⇒ Object



15
16
17
# File 'lib/xmpp_server/config.rb', line 15

def server=(server)
	@@server = server
end

.usernameObject



12
# File 'lib/xmpp_server/config.rb', line 12

def username; @@username; end

.username=(username) ⇒ Object



19
20
21
# File 'lib/xmpp_server/config.rb', line 19

def username=(username)
	@@username = username
end