debian-mirror-gitlab/lib/api/entities/user_status.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
317 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
module API
module Entities
class UserStatus < Grape::Entity
expose :emoji
expose :message
2021-01-29 00:20:46 +05:30
expose :availability
2020-03-13 15:44:24 +05:30
expose :message_html do |entity|
MarkupHelper.markdown_field(entity, :message)
end
2021-03-11 19:13:27 +05:30
expose :clear_status_at
2020-03-13 15:44:24 +05:30
end
end
end