Class: Pubmedly::Pubmed
- Inherits:
-
Object
- Object
- Pubmedly::Pubmed
- Defined in:
- lib/pubmedly/pubmed.rb
Overview
The Pubmed class is the main entry point for the gem. It is initialized with an NCBI API key and exposes methods for searching and fetching articles.
Instance Method Summary collapse
- #articles(term, **kwargs) ⇒ Object
- #fetch ⇒ Object
-
#initialize(api_key) ⇒ Pubmed
constructor
A new instance of Pubmed.
- #search ⇒ Object
Constructor Details
Instance Method Details
#articles(term, **kwargs) ⇒ Object
27 28 29 |
# File 'lib/pubmedly/pubmed.rb', line 27 def articles(term, **kwargs) fetch(search(term, **kwargs), **kwargs) end |