Class: Access::HotelResponse
- 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
75 76 77 78 79 |
# File 'lib/access/response.rb', line 75 def process_data (@hotels = []; create_error) if @message @hotels = Access::Hotel.process_batch(@hotels) if @hotels @aggregations = Access::Hotel.process_batch(@aggregations) if @aggregations end |