Class: FindReadersNumberForBook
- Inherits:
-
Object
- Object
- FindReadersNumberForBook
- Defined in:
- lib/find_readers_number_for_book.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(library, book) ⇒ FindReadersNumberForBook
constructor
A new instance of FindReadersNumberForBook.
- #perform ⇒ Object
Constructor Details
#initialize(library, book) ⇒ FindReadersNumberForBook
Returns a new instance of FindReadersNumberForBook.
6 7 8 9 |
# File 'lib/find_readers_number_for_book.rb', line 6 def initialize(library, book) @library = library @book = book end |
Class Method Details
.perform(library, book) ⇒ Object
2 3 4 |
# File 'lib/find_readers_number_for_book.rb', line 2 def self.perform(library, book) new(library, book).perform end |
Instance Method Details
#perform ⇒ Object
11 12 13 |
# File 'lib/find_readers_number_for_book.rb', line 11 def perform find_the_number_of_readers end |