Skip to content

Commit

Permalink
status byte
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed Apr 22, 2024
1 parent 7e54d68 commit 08f96d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/ruby/lib/merritt_zk_queue_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ def load(zk)
@payload = payload_object
end

def status_byte
@bytes[0]
end

def status_name
return 'NA' if status_byte > status_vals.length
status_vals[status_byte]
Expand Down

0 comments on commit 08f96d6

Please sign in to comment.