Class: Access::TokenResponse

Inherits:
Response show all
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_dataObject



126
127
128
129
130
131
# File 'lib/access/response.rb', line 126

def process_data
  (create_error) if @message
  @access_tokens = Access::Token.process_batch(@access_tokens) if @access_tokens
  @oauth_tokens = Access::Token.process_batch(@oauth_tokens) if @oauth_tokens
  @oauth_token = Access::Token.new(@oauth_token) if @oauth_token
end