class Grape::ErrorFormatter::Xml
Public Class Methods
Source
# File lib/grape/error_formatter/xml.rb, line 6 def self.format_structured_message(structured_message) structured_message.respond_to?(:to_xml) ? structured_message.to_xml(root: :error) : structured_message.to_s end