class Conquiro::SearchAPI::ResultSerializer
Public Class Methods
serializer_for(attributes)
click to toggle source
# File lib/conquiro/search_api/result_serializer.rb, line 6 def self.serializer_for(attributes) wrapper_type = attributes.delete(:kind) case wrapper_type when /software/i then Conquiro::SearchAPI::SoftwareSerializer.new(attributes) else raise "Unsupported serializer type: #{wrapper_type}." end end