Sha256: 38e1e9b4c8837c62b2d592f0a547b70a60f8af079c75d86a098bcda3f3d20c12
Contents?: true
Size: 276 Bytes
Versions: 4
Compression:
Stored size: 276 Bytes
Contents
module Grape module Formatter module Xml class << self def call(object, env) return object.to_xml if object.respond_to?(:to_xml) raise Grape::Exceptions::InvalidFormatter.new(object.class, 'xml') end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
grape-security-0.8.0 | lib/grape/formatter/xml.rb |
grape-0.9.0 | lib/grape/formatter/xml.rb |
grape-0.8.0 | lib/grape/formatter/xml.rb |
grape-0.7.0 | lib/grape/formatter/xml.rb |