1.   def bulk_mode
  2.     result = 0
  3.     case self.status
  4.     when ACTIVE
  5.       result |= (1 << ASSIGN_CMD)
  6.       result |= (1 << RESOLVE_CMD)
  7.     when RESOLVE_RANGE
  8.       result |= (1 << REACTIVATE_CMD)
  9.       result |= (1 << CLOSE_CMD)
  10.     when CLOSED
  11.       result |= (1 << REOPEN_CMD)
  12.     end
  13.     result
  14.   end
Related posts for the current post:
  • No Related Posts