Class: Buggy::Models::Bug

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

Instance Method Summary collapse

Instance Method Details

#closeObject



11
12
13
14
# File 'lib/buggy.rb', line 11

def close
  self.closed = 1
  self.save
end

#statusObject



16
17
18
19
# File 'lib/buggy.rb', line 16

def status
  "Closed" if self.closed == 1
  "Open" if self.closed == 0
end