class FunWithJsonApi::ExceptionPayloadSerializer
Public Instance Methods
attributes(*)
click to toggle source
Calls superclass method
# File lib/fun_with_json_api/exception_payload_serializer.rb, line 5 def attributes(*) # Strips all empty values and empty arrays super.select { |_k, v| v.present? } end
source()
click to toggle source
# File lib/fun_with_json_api/exception_payload_serializer.rb, line 10 def source { pointer: object.pointer, parameter: object.parameter }.select { |_k, v| v.present? } end