Module: ClinicalTrials

Defined in:
lib/clinical_trials.rb,
lib/clinical_trials/client.rb,
lib/clinical_trials/version.rb,
lib/clinical_trials/client/api.rb,
lib/clinical_trials/client/request.rb,
lib/clinical_trials/client/connection.rb

Defined Under Namespace

Classes: Client

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.client(options = {}) ⇒ Object



5
6
7
# File 'lib/clinical_trials.rb', line 5

def self.client(options={})
  ClinicalTrials::Client.new(options)
end

.method_missing(method, *args, &block) ⇒ Object

Delegate to MicrosoftOpenData::Client.new



10
11
12
13
# File 'lib/clinical_trials.rb', line 10

def self.method_missing(method, *args, &block)
  return super unless client.respond_to?(method)
  client.send(method, *args, &block)
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/clinical_trials.rb', line 15

def self.respond_to?(method, include_private=false)
  client.respond_to?(method, include_private) || super(method, include_private)
end