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)


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

def cancelled?
  state == :cancelled
end

#completed?Boolean

Returns:

  • (Boolean)


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

def completed?
  state == :completed
end

#failed?Boolean

Returns:

  • (Boolean)


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

def failed?
  state == :failed
end

#running?Boolean

Returns:

  • (Boolean)


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

def running?
  state == :running
end