Class: Verity::Resources::Drugs
- Inherits:
-
Object
- Object
- Verity::Resources::Drugs
- Defined in:
- lib/verity/resources/drugs.rb
Instance Method Summary collapse
- #formulary(q, payer: 'all', limit: 25) ⇒ Object
-
#initialize(client) ⇒ Drugs
constructor
A new instance of Drugs.
Constructor Details
#initialize(client) ⇒ Drugs
Returns a new instance of Drugs.
6 7 8 |
# File 'lib/verity/resources/drugs.rb', line 6 def initialize(client) @client = client end |
Instance Method Details
#formulary(q, payer: 'all', limit: 25) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/verity/resources/drugs.rb', line 10 def formulary(q, payer: 'all', limit: 25) @client.request( :get, '/drugs/formulary', params: { q: q, payer: payer, limit: limit } ) end |