Module: ActiveEncode::Status
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_encode/status.rb
Instance Method Summary collapse
Instance Method Details
#cancelled? ⇒ Boolean
19 20 21 |
# File 'lib/active_encode/status.rb', line 19 def cancelled? state == :cancelled end |
#completed? ⇒ Boolean
23 24 25 |
# File 'lib/active_encode/status.rb', line 23 def completed? state == :completed end |
#failed? ⇒ Boolean
31 32 33 |
# File 'lib/active_encode/status.rb', line 31 def failed? state == :failed end |
#running? ⇒ Boolean
27 28 29 |
# File 'lib/active_encode/status.rb', line 27 def running? state == :running end |