Sha256: 4282b1bd830a51588c3e80af3459b7d6b62d462e0cd979badebc21f55f382294

Contents?: true

Size: 250 Bytes

Versions: 4

Compression:

Stored size: 250 Bytes

Contents

module Massive
  class ProcessSerializer < ActiveModel::Serializer
    attributes :id, :created_at, :updated_at, :processed_percentage
    attribute :completed?, key: :completed

    has_many :steps

    def id
      object.id.to_s
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
massive-0.3.0 lib/massive/process_serializer.rb
massive-0.2.0 lib/massive/process_serializer.rb
massive-0.1.1 lib/massive/process_serializer.rb
massive-0.1.0 lib/massive/process_serializer.rb