Module: Ohmage
- Defined in:
- lib/ohmage.rb,
lib/ohmage/api.rb,
lib/ohmage/cli.rb,
lib/ohmage/user.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/cli_helpers.rb,
lib/ohmage/entity/user.rb,
lib/ohmage/entity/clazz.rb,
lib/ohmage/entity/survey.rb,
lib/ohmage/entity/campaign.rb,
lib/ohmage/entity/document.rb
Defined Under Namespace
Modules: API, CliHelpers, Version Classes: 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
16 17 18 |
# File 'lib/ohmage.rb', line 16 def self.client( = {}) Ohmage::Client.new() end |
.method_missing(method, *args, &block) ⇒ Object
Delegate to Ohmage::Client
21 22 23 24 |
# File 'lib/ohmage.rb', line 21 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
27 28 29 |
# File 'lib/ohmage.rb', line 27 def self.respond_to?(method) client.respond_to?(method) || super end |