Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def shipping_cost
- total = 0
- adjustments.each { |a| total += a.amount if a.label == "Shipping" }
- total
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement