class Category

Attributes

books[RW]
name[RW]

Public Class Methods

all() click to toggle source
# File lib/nyt_bestsellers_cli_gem/category.rb, line 13
def self.all
  @@all
end
new(name) click to toggle source
# File lib/nyt_bestsellers_cli_gem/category.rb, line 7
def initialize(name)
  @name = name
  @books = []
  @@all << self 
end