lib/access/response.rb in access-2.0.39 vs lib/access/response.rb in access-2.0.40
- 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
+ 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
#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
@@ -144,9 +144,15 @@
end
class MemberResponse < Response
def process_data
@members = Access::Member.process_batch(@members) if @members
+ end
+ end
+
+ class DeviceResponse < Response
+ def process_data
+ @devices = Access::Device.process_batch(@devices) if @devices
end
end
class FilterResponse < Response
def process_data