Module: Ohmage
- Defined in:
- lib/ohmage.rb,
lib/ohmage/api.rb,
lib/ohmage/cli.rb,
lib/ohmage/user.rb,
lib/ohmage/audit.rb,
lib/ohmage/clazz.rb,
lib/ohmage/error.rb,
lib/ohmage/media.rb,
lib/ohmage/client.rb,
lib/ohmage/survey.rb,
lib/ohmage/request.rb,
lib/ohmage/version.rb,
lib/ohmage/campaign.rb,
lib/ohmage/document.rb,
lib/ohmage/annotation.rb,
lib/ohmage/cli_helpers.rb,
lib/ohmage/entity/user.rb,
lib/ohmage/entity/audit.rb,
lib/ohmage/entity/clazz.rb,
lib/ohmage/entity/survey.rb,
lib/ohmage/entity/campaign.rb,
lib/ohmage/entity/document.rb,
lib/ohmage/entity/annotation.rb
Defined Under Namespace
Modules: API, CliHelpers, Version Classes: Annotation, Audit, CLI, Campaign, Clazz, Client, Document, Error, Request, SurveyResponse, User
Class Method Summary collapse
- .client(options = {}) ⇒ Ohmage::Client
-
.method_missing(method, *args, &block) ⇒ Object
Delegate to Ohmage::Client.
-
.respond_to?(method) ⇒ Boolean
Delegate to Ohmage::Client.
Class Method Details
.client(options = {}) ⇒ Ohmage::Client
18 19 20 |
# File 'lib/ohmage.rb', line 18 def self.client( = {}) Ohmage::Client.new() end |
.method_missing(method, *args, &block) ⇒ Object
Delegate to Ohmage::Client
23 24 25 26 |
# File 'lib/ohmage.rb', line 23 def self.method_missing(method, *args, &block) return super unless client.respond_to?(method) client.send(method, *args, &block) end |
.respond_to?(method) ⇒ Boolean
Delegate to Ohmage::Client
29 30 31 |
# File 'lib/ohmage.rb', line 29 def self.respond_to?(method) client.respond_to?(method) || super end |