Commit 64d98dd5 authored by Rajendra Kadam's avatar Rajendra Kadam Committed by James Lopez

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

parent b1fe7c90
---
title: Separate entities into own class files
merge_request: 24985
author: Rajendra Kadam
type: added
...@@ -199,22 +199,6 @@ module API ...@@ -199,22 +199,6 @@ module API
end.compact end.compact
end end
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
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