Class: NYTFiction::Book
- Inherits:
-
Object
- Object
- NYTFiction::Book
- Defined in:
- lib/nyt_fiction/book.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#description ⇒ Object
Returns the value of attribute description.
-
#freshness ⇒ Object
Returns the value of attribute freshness.
-
#publisher ⇒ Object
Returns the value of attribute publisher.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
2 3 4 |
# File 'lib/nyt_fiction/book.rb', line 2 def end |
#description ⇒ Object
Returns the value of attribute description.
2 3 4 |
# File 'lib/nyt_fiction/book.rb', line 2 def description @description end |
#freshness ⇒ Object
Returns the value of attribute freshness.
2 3 4 |
# File 'lib/nyt_fiction/book.rb', line 2 def freshness @freshness end |
#publisher ⇒ Object
Returns the value of attribute publisher.
2 3 4 |
# File 'lib/nyt_fiction/book.rb', line 2 def publisher @publisher end |
#title ⇒ Object
Returns the value of attribute title.
2 3 4 |
# File 'lib/nyt_fiction/book.rb', line 2 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
2 3 4 |
# File 'lib/nyt_fiction/book.rb', line 2 def url @url end |
Class Method Details
.all ⇒ Object
6 7 8 |
# File 'lib/nyt_fiction/book.rb', line 6 def self.all @@all end |
Instance Method Details
#save ⇒ Object
10 11 12 |
# File 'lib/nyt_fiction/book.rb', line 10 def save @@all << self end |