Class: SortingServiceBooks::Book
- Inherits:
-
Object
- Object
- SortingServiceBooks::Book
- Defined in:
- lib/sorting_service_books/book.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#edition ⇒ Object
Returns the value of attribute edition.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, author, edition) ⇒ Book
constructor
A new instance of Book.
Constructor Details
#initialize(title, author, edition) ⇒ Book
Returns a new instance of Book.
6 7 8 9 10 |
# File 'lib/sorting_service_books/book.rb', line 6 def initialize(title, , edition) @title = title @author = @edition = edition end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
4 5 6 |
# File 'lib/sorting_service_books/book.rb', line 4 def @author end |
#edition ⇒ Object
Returns the value of attribute edition.
4 5 6 |
# File 'lib/sorting_service_books/book.rb', line 4 def edition @edition end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/sorting_service_books/book.rb', line 4 def title @title end |