Class: Cinii::SearchResult::Book
- Defined in:
- lib/cinii/search_result/book.rb
Instance Method Summary collapse
Methods inherited from Base
#current_page, #date, #description, #first_page?, #initialize, #items_per_page, #last_page?, #last_page_start_index, #link, #next_page_start_index, #prev_page_start_index, #start_index, #title, #total_items, #total_pages
Constructor Details
This class inherits a constructor from Cinii::SearchResult::Base
Instance Method Details
#items ⇒ Object
6 7 8 9 10 |
# File 'lib/cinii/search_result/book.rb', line 6 def items items = graph['items'] @items ||= items ? items.map { |i| item_class.new(i) } : [] end |