debian-mirror-gitlab/lib/atlassian/jira_connect/serializers/base_entity.rb
2020-11-24 15:15:51 +05:30

22 lines
446 B
Ruby

# frozen_string_literal: true
module Atlassian
module JiraConnect
module Serializers
class BaseEntity < Grape::Entity
include Gitlab::Routing
include GitlabRoutingHelper
format_with(:string) { |value| value.to_s }
expose :monotonic_time, as: :updateSequenceId
private
def monotonic_time
Gitlab::Metrics::System.monotonic_time.to_i
end
end
end
end
end