Sha256: d0c408805608633d052a0c158dc1beb3ebc3d8e4594da5f610699a844b0a68b0
Contents?: true
Size: 752 Bytes
Versions: 3
Compression:
Stored size: 752 Bytes
Contents
module RestFtpDaemon module API module Entities class JobPresenter < Grape::Entity # Job ID expose :id # Job specific attributes and flags Job::FIELDS.each { |name| expose name } # Technical fields expose :wid, unless: lambda { |object, _options| object.wid.nil? } # expose :error expose :json_error, as: :error expose :json_status, as: :status #expose :json_target, as: :target_method expose :queued_at expose :updated_at expose :started_at expose :finished_at # Computed fields expose :age expose :exectime # Params expose :infos, unless: :hide_infos end end end end
Version data entries
3 entries across 3 versions & 1 rubygems