Sha256: d5774bc17fc761701e63a6ca35a11cfda3805c2a21da5cb840a62c1b69e42e30

Contents?: true

Size: 303 Bytes

Versions: 25

Compression:

Stored size: 303 Bytes

Contents

# frozen_string_literal: true

module JsonApiToolbox
  module Serializables
    class SerializableJob < JSONAPI::Serializable::Resource
      type :jobs

      id { @object.job_id }

      attribute(:queue_name) { @object.queue_name }
      attribute(:arguments) { @object.arguments }
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
json_api_toolbox-3.0.0 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-2.1.0 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-2.0.1 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-2.0.0 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-1.5.1 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-1.4.0 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-1.3.0 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-1.2.0 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-1.1.0 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-1.0.0 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-0.17.0 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-0.16.2 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-0.16.1 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-0.16.0 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-0.15.1 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-0.15.0 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-0.14.0 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-0.13.0 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-0.12.1 lib/json_api_toolbox/serializables/serializable_job.rb
json_api_toolbox-0.12.0 lib/json_api_toolbox/serializables/serializable_job.rb