Class: Guestlist

Inherits:
Array
  • Object
show all
Defined in:
lib/quickmox/guestlist.rb

Instance Method Summary collapse

Instance Method Details

#find(id) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/quickmox/guestlist.rb', line 3

def find(id)
  self.each do |el|
    if el.id.eql?(id.to_s)
      return el
    end
  end
end

#rescanObject



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

def rescan
  scan
end

#scanObject



11
12
13
14
15
16
# File 'lib/quickmox/guestlist.rb', line 11

def scan
  self.each do |el|
    el.scan
  end
  self
end