Sha256: 8e981f27bcc716b91ea83c6c2116ef3b21ba10cc2094b3ebf791a72d665eee49
Contents?: true
Size: 503 Bytes
Versions: 3
Compression:
Stored size: 503 Bytes
Contents
require 'active_support' module ActiveEncode module Status extend ActiveSupport::Concern included do # Current state of the encoding process attr_accessor :state attr_accessor :errors attr_accessor :created_at attr_accessor :updated_at end def cancelled? state == :cancelled end def completed? state == :completed end def running? state == :running end def failed? state == :failed end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active_encode-0.5.0 | lib/active_encode/status.rb |
active_encode-0.4.1 | lib/active_encode/status.rb |
active_encode-0.4 | lib/active_encode/status.rb |