Sha256: 7138b2c49ba0243a97b8b129a83d5241b369a62d95850bdab9d796870ac5fc41
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 Bytes
Contents
require 'securerandom' module Upperkut class Item attr_reader :id, :body, :enqueued_at def initialize(id:, body:, enqueued_at: nil) @id = id @body = body @enqueued_at = enqueued_at || Time.now.utc.to_i @nacked = false end def nack @nacked = true end def nacked? @nacked end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
upperkut-1.0.4 | lib/upperkut/item.rb |
upperkut-1.0.2 | lib/upperkut/item.rb |