lib/shoppr/image.rb in shoppr-0.1.1 vs lib/shoppr/image.rb in shoppr-0.2.3
- old
+ new
@@ -1,10 +1,8 @@
module Shoppr
- class Image
- include ROXML
- xml_convention {|val| val.camelize(:lower) }
- xml_reader :available?, :from => '@available'
- xml_reader :height, :as => Integer, :from => '@height'
- xml_reader :width, :as => Integer, :from => '@width'
- xml_reader :source_url, :from => 'sourceURL'
+ class Image
+
+ def initialize(cat_mash)
+ Shoppr.map_mash_attrs(self, cat_mash)
+ end
end
end
\ No newline at end of file