about summary refs log tree commit homepage
path: root/lib/upr/status.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/upr/status.rb')
-rw-r--r--lib/upr/status.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/upr/status.rb b/lib/upr/status.rb
index e3bb356..443933a 100644
--- a/lib/upr/status.rb
+++ b/lib/upr/status.rb
@@ -1,15 +1,8 @@
+require 'upr/status_methods'
 module Upr
 
   # this is what we store in the Moneta-backed monitor
   class Status < Struct.new(:seen, :length)
-
-    def error?
-      seen == -1
-    end
-
-    def done?
-      length && seen >= length
-    end
-
+    include StatusMethods
   end
 end