Guest User

Untitled

a guest
Nov 18th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. class Order
  2. def initialize(quantity)
  3. @unit_price = 100
  4. @quantity = quantity
  5. end
  6.  
  7. def amount
  8. @quantity * @unit_price
  9. end
  10. end
Add Comment
Please, Sign In to add comment