Sha256: ab4991c9f227a45f72ffa2ddb21f5b531732f622fdcd1e5a94afa0917f7f01c6

Contents?: true

Size: 254 Bytes

Versions: 8

Compression:

Stored size: 254 Bytes

Contents

module Asyncapi
  module Server
    class Job < ActiveRecord::Base

      self.table_name = "asyncapi_server_jobs"
      enum status: %i[queued success error]

      def url
        Engine.routes.url_helpers.v1_job_url(self)
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
asyncapi-server-1.3.2 app/models/asyncapi/server/job.rb
asyncapi-server-1.3.0 app/models/asyncapi/server/job.rb
asyncapi-server-1.2.0 app/models/asyncapi/server/job.rb
asyncapi-server-1.1.3 app/models/asyncapi/server/job.rb
asyncapi-server-1.1.2 app/models/asyncapi/server/job.rb
asyncapi-server-1.1.1 app/models/asyncapi/server/job.rb
asyncapi-server-1.1.0 app/models/asyncapi/server/job.rb
asyncapi-server-1.0.0 app/models/asyncapi/server/job.rb