class Libri::Book
Attributes
availability[RW]
blurbs_and_plot[RW]
book[RW]
excerpt[RW]
url[RW]
Public Class Methods
all()
click to toggle source
# File lib/libri/book.rb, line 17 def self.all @@all end
create_from_collection(book_info_hash)
click to toggle source
# File lib/libri/book.rb, line 13 def self.create_from_collection(book_info_hash) self.new(book_info_hash) end
new(book_info_hash)
click to toggle source
# File lib/libri/book.rb, line 6 def initialize(book_info_hash) book_info_hash.map { |key, val| send "#{key}=", val } @@all << self end