Class: BlackStack::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/dbclasses.rb

Overview

class User

Instance Method Summary collapse

Instance Method Details

#categoriesObject

return all categories of all the users of this client



23
24
25
# File 'lib/dbclasses.rb', line 23

def categories()
    return self.users.map{|u| u.categories}.flatten
end

#flagsObject

return all flags of all the users of this client



18
19
20
# File 'lib/dbclasses.rb', line 18

def flags()
    return self.users.map{|u| u.flags}.flatten
end