lib/access/response.rb in access-2.0.52 vs lib/access/response.rb in access-2.0.53

- old
+ new

@@ -15,10 +15,12 @@ attr_reader :key, :campaign_name, :campaign_description, :start_date, :end_date, :campaign_ranking, :spot_list, :channel_list #spot show page attr_reader :spot_name, :spot_text, :spot_ranking, :spot_redirect_url, :spot_redirect_type, :spot_image_url, :offer_resource #channel show page attr_reader :channel_name, :channel_type, :channel_identifier, :channel_description + #shopping cart count + attr_reader :total_cart_count def initialize(response) @response = response # Setting this temporarily so i can have a working member reg call, since it doesn't follow the resource [] best practices response.each { |key, value| instance_variable_set("@#{key}", value) if self.class.instance_methods.include? key.to_sym } @response_status = response.message @@ -58,19 +60,23 @@ end end class ProductGroupResponse < Response def process_data - end end class StoreResponse < Response def process_data (@stores = []; create_error) if @message @stores = Access::Store.process_batch(@stores) if @stores @offer_count_in_categories = Access::Aggregations.process_batch(@offer_count_in_categories) if @offer_count_in_categories @custom_aggregation = Access::Aggregations.process_batch(@custom_aggregation) if @custom_aggregation + end + end + + class ShoppingCartResponse < Response + def process_data end end class LocationResponse < Response def process_data