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

- old
+ new

@@ -13,10 +13,12 @@ attr_reader :api_calls_over_time, :member_usage #campaign show page attr_reader :key, :campaign_name, :campaign_description, :start_date, :end_date, :campaign_ranking, :spot_list, :channel_list #spot show page attr_reader :spot_name, :spot_text, :spot_ranking, :spot_redirect_url, :spot_redirect_type, :spot_image_url, :offer_resource + #channel show page + attr_reader :channel_name, :channel_type, :channel_identifier, :channel_description def initialize(response) @response = response # Setting this temporarily so i can have a working member reg call, since it doesn't follow the resource [] best practices response.each { |key, value| instance_variable_set("@#{key}", value) if self.class.instance_methods.include? key.to_sym } @response_status = response.message @@ -147,10 +149,10 @@ end end class ChannelResponse < Response def process_data - @channels = Access::Channel.process_batch(@channels) + @channels = Access::Channel.process_batch(@channels) if @channels end end class CampaignResponse < Response def process_data