Sha256: 09496b73b11ffecbe60c333c8cecdd3a42d8fcf29773f954378ce978dd10bb5f
Contents?: true
Size: 793 Bytes
Versions: 1
Compression:
Stored size: 793 Bytes
Contents
require "grape-entity" 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 :error_utf8, :as => :error expose :status_utf8, :as => :status expose :target_method_utf8, :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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rest-ftp-daemon-0.242.5 | lib/rest-ftp-daemon/api/job_presenter.rb |