Module: Atheme::Authenticate
- Included in:
- Atheme
- Defined in:
- lib/atheme/authenticate.rb
Instance Attribute Summary collapse
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
Instance Attribute Details
#user ⇒ Object
Returns the value of attribute user.
2 3 4 |
# File 'lib/atheme/authenticate.rb', line 2 def user @user end |
Instance Method Details
#login(username, password) ⇒ Object
4 5 6 |
# File 'lib/atheme/authenticate.rb', line 4 def login(username, password) call('atheme.login', username, password) end |
#logout(token, username) ⇒ Object
8 9 10 |
# File 'lib/atheme/authenticate.rb', line 8 def logout(token, username) call('atheme.logout', token, username) end |