Module: ActiveEncode::Status

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

Instance Method Summary collapse

Instance Method Details

#cancelled?Boolean

Returns:

  • (Boolean)

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

def cancelled?
  state == :cancelled
end

#completed?Boolean

Returns:

  • (Boolean)

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

def completed?
  state == :completed
end

#created?Boolean

Returns:

  • (Boolean)

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

def created?
  !id.nil?
end

#failed?Boolean

Returns:

  • (Boolean)

35
36
37
# File 'lib/active_encode/status.rb', line 35

def failed?
  state == :failed
end

#running?Boolean

Returns:

  • (Boolean)

31
32
33
# File 'lib/active_encode/status.rb', line 31

def running?
  state == :running
end