Advertisement
Guest User

Untitled

a guest
Feb 18th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. def shipping_cost
  2. total = 0
  3. adjustments.each { |a| total += a.amount if a.label == "Shipping" }
  4. total
  5. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement