class Bestsellers::Books

Attributes

author[RW]
price[RW]
title[RW]
url[RW]

Public Class Methods

all() click to toggle source
# File lib/bestsellers/books.rb, line 13
def self.all
    @@books
end
new(title, author,price, url) click to toggle source
# File lib/bestsellers/books.rb, line 5
def initialize(title, author,price, url)
    @title = title
    @author = author
    @price = price
    @url = url
    @@books << self
end