Sha256: 5f70bd948276799b6c93887939247efddb7a2f70196a4992bbbda64078538ce8

Contents?: true

Size: 303 Bytes

Versions: 4

Compression:

Stored size: 303 Bytes

Contents

# frozen_string_literal: true

require_relative "./drugs"

module OpenFdaApi
  # Gives you access to the main nouns in the openFDA API
  class Client
    attr_reader :api_key

    def initialize(api_key: nil)
      @api_key = api_key
    end

    def drugs
      OpenFdaApi::Drugs.new
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
open_fda_api-0.0.6 lib/open_fda_api/client.rb
open_fda_api-0.0.5 lib/open_fda_api/client.rb
open_fda_api-0.0.4 lib/open_fda_api/client.rb
open_fda_api-0.0.3 lib/open_fda_api/client.rb