Class: Puree::Extractor::JournalArticle
- Defined in:
- lib/puree/extractor/journal_article.rb
Overview
Journal article extractor.
Instance Method Summary collapse
- #find(id) ⇒ Puree::Model::JournalArticle?
-
#random(params = {}) ⇒ Puree::Model::JournalArticle?
Random record.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Puree::Extractor::Resource
Instance Method Details
#find(id) ⇒ Puree::Model::JournalArticle?
10 11 12 13 14 |
# File 'lib/puree/extractor/journal_article.rb', line 10 def find(id) super id: id, api_resource_type: :research_output, xml_extractor_resource_type: :journal_article end |
#random(params = {}) ⇒ Puree::Model::JournalArticle?
Random record.
20 21 22 |
# File 'lib/puree/extractor/journal_article.rb', line 20 def random(params = {}) record_count :journal_article, params end |