module Enlight module Responses class SearchClubs < Enlight::Responses::Response include Enlight::Responses::Pageable def results=(value) if value.instance_of?(Array) && value.any? @results = [] value.each {|v| @results.append(Enlight::Models::Club.new(v))} else @results = nil end end end end end