Class: XmppServer::Config
- Inherits:
-
Object
- Object
- XmppServer::Config
- Defined in:
- lib/xmpp_server/config.rb
Constant Summary collapse
- @@server =
"weishanke.com"
- @@username =
"tester001"
- @@password =
"123456"
Class Method Summary collapse
- .config {|_self| ... } ⇒ Object
- .password ⇒ Object
- .password=(password) ⇒ Object
- .server ⇒ Object
- .server=(server) ⇒ Object
- .username ⇒ Object
- .username=(username) ⇒ Object
Class Method Details
.config {|_self| ... } ⇒ Object
27 28 29 |
# File 'lib/xmpp_server/config.rb', line 27 def config yield self end |
.password ⇒ Object
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 |
.server ⇒ Object
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 |
.username ⇒ Object
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 |