Module: Upr::StatusMethods
- Included in:
- Status
- Defined in:
- lib/upr/status_methods.rb
Overview
mixin module for both Upr::Status and UprStatus (AR example module)
Instance Method Summary collapse
Instance Method Details
#done? ⇒ Boolean
9 10 11 |
# File 'lib/upr/status_methods.rb', line 9 def done? length && seen >= length end |
#error? ⇒ Boolean
5 6 7 |
# File 'lib/upr/status_methods.rb', line 5 def error? seen < 0 end |