Sha256: 2228d6f42aef807e941c85e85a8b6801cb98a88677ea8fda2c0b4606708c16cd

Contents?: true

Size: 384 Bytes

Versions: 5

Compression:

Stored size: 384 Bytes

Contents

module Massive
  class StepSerializer < ActiveModel::Serializer
    attributes :id, :created_at, :updated_at, :started_at, :finished_at, :failed_at,
               :last_error, :retries, :memory_consumption, :total_count,
               :processed, :processed_percentage, :processing_time, :elapsed_time,
               :notifier_id

    def id
      object.id.to_s
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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