Files
ubicloud/serializers/usage_alert.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
243 B
Ruby

# frozen_string_literal: true
class Serializers::UsageAlert < Serializers::Base
def self.serialize_internal(ua, options = {})
{
ubid: ua.ubid,
name: ua.name,
limit: ua.limit,
email: ua.user.email
}
end
end