Class: Artaius::Player
- Inherits:
-
Object
- Object
- Artaius::Player
- Defined in:
- lib/artaius/models/player.rb
Overview
Internal: Represents KAG player.
Class Method Summary collapse
-
.exists?(irc_authname) ⇒ Boolean
Internal: Check database for given authname.
Class Method Details
.exists?(irc_authname) ⇒ Boolean
Internal: Check database for given authname.
irc_authname - The String, represents IRC authname of the player.
Returns true if the given authname is in database or false otherwise.
11 12 13 |
# File 'lib/artaius/models/player.rb', line 11 def self.exists?(irc_authname) filter(:irc_authname => irc_authname).select(:irc_authname).any? end |