class Access::OfferResponse
Public Instance Methods
process_data()
click to toggle source
# File lib/access/response.rb, line 56 def process_data # for when you search and it returns 0 (@offers = []; create_error) if @message @offers = Access::Offer.process_batch(@offers) if @offers @offer_count_in_categories = Access::Aggregations.process_batch(@offer_count_in_categories) if @offer_count_in_categories @offer_count_by_redemption_method = Access::Aggregations.process_batch(@offer_count_by_redemption_method) if @offer_count_by_redemption_method @offer_count_by_facet = Access::Aggregations.process_batch(@offer_count_by_facet) if @offer_count_by_facet @custom_aggregation = Access::Aggregations.process_batch(@custom_aggregation) if @custom_aggregation end