Files
ubicloud/serializers/access_policy.rb
Burak Yucesoy 69ecb12e8d Combine all serializers under top level namespace
We merged all web and api serializers. There is no need for separate namespaces
anymore.
2024-05-28 21:42:31 +03:00

13 lines
240 B
Ruby

# frozen_string_literal: true
class Serializers::AccessPolicy < Serializers::Base
def self.serialize_internal(ap, options = {})
{
id: ap.id,
ubid: ap.ubid,
name: ap.name,
body: ap.body.to_json
}
end
end