Module: ActiveEncode::Status

Extended by:
ActiveSupport::Concern
Included in:
Base, Input, Output
Defined in:
lib/active_encode/status.rb

Instance Method Summary collapse

Instance Method Details

#cancelled?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/active_encode/status.rb', line 16

def cancelled?
  state == :cancelled
end

#completed?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/active_encode/status.rb', line 20

def completed?
  state == :completed
end

#failed?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/active_encode/status.rb', line 28

def failed?
  state == :failed
end

#running?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/active_encode/status.rb', line 24

def running?
  state == :running
end