lib/access/response.rb in access-2.0.55 vs lib/access/response.rb in access-2.1.0

- old
+ new

@@ -2,11 +2,11 @@ class Response #basics attr_reader :info, :links, :message, :status, :success, :error, :response_status, :dev_node, :internal_details, :response #resources - attr_reader :offers, :stores, :locations, :categories, :suggestions, :oauth_applications, :access_tokens, :oauth_tokens, :oauth_token, :verify, :reports, :members, :filters, :oauth_access_token, :users, :offer_redemptions, :favorites, :campaigns, :channels, :spots, :programs, :devices, :product_groups + attr_reader :offers, :stores, :locations, :categories, :suggestions, :oauth_applications, :access_tokens, :oauth_tokens, :oauth_token, :verify, :reports, :members, :filters, :oauth_access_token, :users, :offer_redemptions, :favorites, :campaigns, :channels, :spots, :programs, :devices, :product_groups, :products #aggregations attr_reader :offer_count_in_categories, :offer_count_by_redemption_method, :offer_count_by_facet, :custom_aggregation #redemptions attr_reader :content_type, :redemption_method, :details #usages @@ -62,10 +62,11 @@ end end class ProductGroupResponse < Response def process_data - + (@product_groups = []; create_error) if @message + @product_groups = Access::ProductGroup.process_batch(@product_groups) if @product_groups end end class StoreResponse < Response def process_data