Module: Atheme
- Extended by:
- Authenticate, Configuration
- Defined in:
- lib/atheme.rb,
lib/atheme.rb,
lib/atheme/errors.rb,
lib/atheme/version.rb
Defined Under Namespace
Modules: Authenticate, Configuration
Classes: ALIS, ChanServ, GameServ, Global, GroupServ, HelpServ, HostServ, InfoServ, MemoServ, NickServ, NoUserSetError, ObjectifiedHash, OperServ, RPGServ, Service, StatServ
Constant Summary
collapse
- SERVICES =
[]
- VERSION =
'0.0.2'
Configuration::VALID_CONFIG_OPTIONS
Instance Attribute Summary
Attributes included from Authenticate
#user
Class Method Summary
collapse
configure, options
login, logout
Class Method Details
.call(*args) ⇒ Object
23
24
25
|
# File 'lib/atheme.rb', line 23
def self.call(*args)
server.call(*args)
end
|
.server ⇒ Object
19
20
21
|
# File 'lib/atheme.rb', line 19
def self.server
XMLRPC::Client.new2("#{Atheme.url}:#{Atheme.port}/xmlrpc")
end
|
.set_user(cookie, username, ip) ⇒ Object
27
28
29
|
# File 'lib/atheme.rb', line 27
def self.set_user(cookie, username, ip)
self.user = Atheme::ObjectifiedHash.new({ cookie: cookie, username: username, ip: ip })
end
|