Class: Buggy::Models::Bug
- Inherits:
-
Base
- Object
- Base
- Buggy::Models::Bug
- Defined in:
- lib/buggy.rb
Instance Method Summary collapse
Instance Method Details
#close ⇒ Object
11 12 13 14 |
# File 'lib/buggy.rb', line 11 def close self.closed = 1 self.save end |
#status ⇒ Object
16 17 18 19 |
# File 'lib/buggy.rb', line 16 def status "Closed" if self.closed == 1 "Open" if self.closed == 0 end |