2013-10-21 14:49:51 -04:00
|
|
|
class ScreenedIpAddressSerializer < ApplicationSerializer
|
2013-10-22 16:30:30 -04:00
|
|
|
attributes :id,
|
|
|
|
:ip_address,
|
2013-10-21 14:49:51 -04:00
|
|
|
:action,
|
|
|
|
:match_count,
|
|
|
|
:last_match_at,
|
|
|
|
:created_at
|
|
|
|
|
|
|
|
def action
|
|
|
|
ScreenedIpAddress.actions.key(object.action_type).to_s
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|