Nuva usage with ruby

Installation

gem install nuva

Utilisation

Liste de tous les vaccins

nuva = Nuva.new()
vaccines_repository = nuva.repositories.vaccines
vaccines_repository.all.each do |vaccine|
  puts vaccine.name['fr']
end

Trouver un vaccin specifique

nuva = Nuva.new()
vaccines_repository = nuva.repositories.vaccines
vaccine = vaccines_repository.find("384198db-b13c-4e08-b7a1-9311809a21b9")
puts vaccine.name['en']
# => BOOSTRIXTETRA