Guest User

Untitled

a guest
Apr 21st, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. xml.response(:code => @code, &proc do
  2. xml.items(&proc do
  3. @items.each(&proc do |item|
  4. xml.item(&proc do
  5. xml.sku(item.product.sku)
  6. xml.description(item.product.description)
  7. xml.unit_price(item.product.list_price, :currency => "usd")
  8. xml.quantity(1)
  9. end)
  10. end)
  11. end)
  12. end)
Add Comment
Please, Sign In to add comment