Class: Cinii::SearchResult::Article

Inherits:
Base
  • Object
show all
Defined in:
lib/cinii/search_result/article.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

#itemsObject



6
7
8
9
10
# File 'lib/cinii/search_result/article.rb', line 6

def items
  items = graph['items']

  @items ||= items ? items.map { |i| item_class.new(i) } : []
end