lib/magento/order.rb in magentor-0.1.7 vs lib/magento/order.rb in magentor-0.1.8

- old
+ new

@@ -82,9 +82,15 @@ # mixed orderIncrementId - order increment id def cancel(*args) commit('cancel', *args) end + def order_items + self.items.collect do |item| + OrderItem.new(item) + end + end + def find_by_id(id) info(id) end def find(find_type, options = {}) \ No newline at end of file