Class: Rubyhexagon::Search::TagHistory
- Inherits:
-
Object
- Object
- Rubyhexagon::Search::TagHistory
- Defined in:
- lib/rubyhexagon/search/tag_history.rb
Overview
Class to hold methods for fetching tag changes.
Class Method Summary collapse
-
.list(page = 1) ⇒ Array<Post>
Retrieve a list of posts with changed tags This method accepts blocks and only returns one page without blocks.
Class Method Details
.list(page = 1) ⇒ Array<Post>
Retrieve a list of posts with changed tags This method accepts blocks and only returns one page without blocks
38 39 40 41 42 43 44 45 46 |
# File 'lib/rubyhexagon/search/tag_history.rb', line 38 def self.list(page = 1) d = fetch_list(page) while block_given? && d != [] d.each { |del| yield del } page += 1 d = fetch_list(page) end d end |