class Order
Attributes
book[RW]
date[RW]
reader[RW]
Public Class Methods
new(book, reader, date)
click to toggle source
# File lib/order.rb, line 4 def initialize(book, reader, date) @book = book @reader = reader @date = date end
Public Instance Methods
to_h()
click to toggle source
# File lib/order.rb, line 10 def to_h { book: book.title, reader: reader.name, date: date } end