Class: Access::OfferResponse
- Defined in:
- lib/access/response.rb
Instance Attribute Summary
Attributes inherited from Response
#access_tokens, #aggregations, #api_calls_over_time, #campaign_description, #campaign_name, #campaign_ranking, #campaigns, #categories, #channel_description, #channel_identifier, #channel_list, #channel_name, #channel_type, #channels, #content_type, #custom_aggregation, #data, #details, #dev_node, #devices, #end_date, #error, #favorites, #filters, #hotels, #info, #internal_details, #key, #links, #locations, #member_usage, #members, #message, #oauth_access_token, #oauth_applications, #oauth_token, #oauth_tokens, #offer_count_by_facet, #offer_count_by_redemption_method, #offer_count_in_categories, #offer_redemptions, #offer_resource, #offers, #product_groups, #products, #programs, #redemption_method, #reports, #response, #response_status, #spot_image_url, #spot_list, #spot_name, #spot_ranking, #spot_redirect_type, #spot_redirect_url, #spot_text, #spots, #start_date, #status, #stores, #success, #suggestions, #total_cart_count, #users, #verify
Instance Method Summary collapse
Methods inherited from Response
#check_success, #create_error, #initialize
Constructor Details
This class inherits a constructor from Access::Response
Instance Method Details
#process_data ⇒ Object
56 57 58 59 60 61 62 63 64 |
# 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 |