Module: ActiveEncode::Status
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_encode/status.rb
Instance Method Summary collapse
Instance Method Details
#cancelled? ⇒ Boolean
16 17 18 |
# File 'lib/active_encode/status.rb', line 16 def cancelled? state == :cancelled end |
#completed? ⇒ Boolean
20 21 22 |
# File 'lib/active_encode/status.rb', line 20 def completed? state == :completed end |
#failed? ⇒ Boolean
28 29 30 |
# File 'lib/active_encode/status.rb', line 28 def failed? state == :failed end |
#running? ⇒ Boolean
24 25 26 |
# File 'lib/active_encode/status.rb', line 24 def running? state == :running end |