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