Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Product
- attr_accessor :price, :quantity
- def initialize(param)
- @price = param[:price]
- @quantity =param[:quantity]
- end
- def to_s
- "#{@price} рублей В наличии - #{@quantity}"
- end
- def self.from_file(file_path)
- NotImplementedError
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement