lib/caren/product.rb in caren-api-0.4.16 vs lib/caren/product.rb in caren-api-0.4.17
- old
+ new
@@ -31,14 +31,14 @@
def self.all session
from_xml session.get(self.resource_url)
end
def create session
- session.post(self.resource_url, self.to_xml)
+ from_xml session.post(self.resource_url, self.to_xml)
end
def update session
- session.put(self.resource_url(self.id), self.to_xml)
+ from_xml session.put(self.resource_url(self.id), self.to_xml)
end
def update_photo photo_hash_or_path, session
session.put(self.resource_url(self.id), self.to_photo_xml(photo_hash_or_path))
end
\ No newline at end of file