lib/adrian/queue_item.rb in adrian-1.2.0 vs lib/adrian/queue_item.rb in adrian-1.3.0
- old
+ new
@@ -4,7 +4,11 @@
def initialize(value, created_at = Time.now)
@value = value
@created_at = created_at
end
+
+ def age
+ Time.now - created_at
+ end
end
end