Sha256: e407450984a45680aaa4ae209d3e6816dd9c415f15af94b1ef7e954c07cfe8a2

Contents?: true

Size: 211 Bytes

Versions: 1

Compression:

Stored size: 211 Bytes

Contents

class Book < Library
  attr_accessor :title, :author

  def initialize(title, author)
    @title = title
    @author = author
  end

  def to_h
    {
      title: title,
      author: author.name
    }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bokov_library-1.0.0 lib/book.rb