Class: Verity::Resources::Drugs

Inherits:
Object
  • Object
show all
Defined in:
lib/verity/resources/drugs.rb

Instance Method Summary collapse

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