Commit 970b32d1 authored by James Lopez's avatar James Lopez

Merge branch 'refactoring-entities-file-27' into 'master'

Separate user agent, custom attribute and page domain cert into own entities file

See merge request gitlab-org/gitlab!24985
parents 6d9099bf 64d98dd5
---
title: Separate entities into own class files
merge_request: 24985
author: Rajendra Kadam
type: added
......@@ -199,22 +199,6 @@ module API
end.compact
end
end
class UserAgentDetail < Grape::Entity
expose :user_agent
expose :ip_address
expose :submitted, as: :akismet_submitted
end
class CustomAttribute < Grape::Entity
expose :key
expose :value
end
class PagesDomainCertificateExpiration < Grape::Entity
expose :expired?, as: :expired
expose :expiration
end
end
end
......
# frozen_string_literal: true
module API
module Entities
class CustomAttribute < Grape::Entity
expose :key
expose :value
end
end
end
# frozen_string_literal: true
module API
module Entities
class PagesDomainCertificateExpiration < Grape::Entity
expose :expired?, as: :expired
expose :expiration
end
end
end
# frozen_string_literal: true
module API
module Entities
class UserAgentDetail < Grape::Entity
expose :user_agent
expose :ip_address
expose :submitted, as: :akismet_submitted
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment