class BookwormBestSellers::Book
Attributes
description[RW]
title[RW]
url[RW]
Public Class Methods
all()
click to toggle source
# File lib/bookworm_best_sellers/book.rb, line 13 def self.all @@current_book_list end
new(attributes = {})
click to toggle source
# File lib/bookworm_best_sellers/book.rb, line 5 def initialize(attributes = {}) @title = attributes[:title] @author = attributes[:author] @description = attributes[:description] @url = attributes[:url] @@current_book_list << self end