lib/access/spot.rb in access-2.0.40 vs lib/access/spot.rb in access-2.0.41
- old
+ new
@@ -21,10 +21,18 @@
self.class.class_eval {attr_reader *values.keys }
values.each do |attribute_name, attribute_value|
self.instance_variable_set("@#{attribute_name}", attribute_value)
end
@offer_resource = Access::Offer.new(@offer_resource) if @offer_resource
+ @campaign_resource = Access::Campaign.new(@campaign_resource) if @campaign_resource
@links = Access::Link.process_batch(@links) if @links
end
+ def offer
+ @offer_resource
+ end
+
+ def campaign
+ @campaign_resource
+ end
end
end