Class: Artaius::Player

Inherits:
Object
  • Object
show all
Defined in:
lib/artaius/models/player.rb

Overview

Internal: Represents KAG player.

Class Method Summary collapse

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.

Returns:

  • (Boolean)


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