Sha256: 1d610d209fab6adc8e42b558552ec260814d03051dfdfdc2d10ccb75408a7fc9
Contents?: true
Size: 251 Bytes
Versions: 1
Compression:
Stored size: 251 Bytes
Contents
class Order attr_accessor :book, :reader, :date def initialize(book, reader, date) @book = book @reader = reader @date = date end def to_h { book: book.title, reader: reader.name, date: date } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bokov_library-1.0.0 | lib/order.rb |