Class: ModSpox::Models::Group

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/mod_spox/models/Group.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.filter(args = {}) ⇒ Object



13
14
15
16
# File 'lib/mod_spox/models/Group.rb', line 13

def Group.filter(args={})
    args[:name].downcase! if args.has_key?(:name)
    super(args)
end

.find_or_create(args = {}) ⇒ Object



18
19
20
21
# File 'lib/mod_spox/models/Group.rb', line 18

def Group.find_or_create(args={})
    args[:name].downcase! if args.has_key?(:name)
    super(args)
end

Instance Method Details

#name=(group_name) ⇒ Object



23
24
25
26
# File 'lib/mod_spox/models/Group.rb', line 23

def name=(group_name)
    group_name.downcase!
    super(group_name)
end