lib/access/favorite.rb in access-2.0.17 vs lib/access/favorite.rb in access-2.0.18

- old
+ new

@@ -8,9 +8,13 @@ def initialize(values) 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 = Access::Offer.new(@offer) if @offer + @location = Access::Location.new(@location) if @location + @store = Access::Store.new(@store) if @store + end def resource self.send(self.favoriteType) end