lib/access/response.rb in access-2.0.50 vs lib/access/response.rb in access-2.0.51

- old
+ new

@@ -27,11 +27,10 @@ if @success @info = Access::Info.new(@info) if @info (@links = @links.is_a?(Array) ? Access::Link.process_batch(@links) : Access::Link.new(@links)) if @links process_data end - end def check_success(response) if response.success? @success = true @@ -54,13 +53,9 @@ @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 - - def used_fields - offers.flat_map(&:used_fields).compact.uniq end end class StoreResponse < Response def process_data