lib/access/response.rb in access-2.0.28 vs lib/access/response.rb in access-2.0.29

- 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 + 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 #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 @@ -126,9 +126,15 @@ def process_data @api_calls_over_time = Access::Report.process_batch(@api_calls_over_time) if @api_calls_over_time @member_query_terms = Access::Report.process_batch(@member_query_terms) if @member_query_terms @member_usage = Access::Report.process_batch(@member_usage) if @member_usage @member_postal_codes = Access::Report.process_batch(@member_postal_codes) if @member_postal_codes + end + end + + class ProgramResponse < Response + def process_data + @programs = Access::Program.process_batch([@response]) end end class MemberResponse < Response def process_data