lib/access/channel.rb in access-2.0.26 vs lib/access/channel.rb in access-2.0.27

- old
+ new

@@ -8,10 +8,10 @@ def self.find(channel_key, options = {}) Access::Api.new.find_channel channel_key, options end def self.process_batch(chunk) - chunk.map { |campaign| new(campaign) } + chunk.map { |channel| new(channel) } end def initialize(values) self.class.class_eval {attr_reader *values.keys } values.each do |attribute_name, attribute_value|