Module: Surveygizmo

Extended by:
Configuration
Defined in:
lib/surveygizmo.rb,
lib/surveygizmo/api.rb,
lib/surveygizmo/client.rb,
lib/surveygizmo/request.rb,
lib/surveygizmo/version.rb,
lib/surveygizmo/connection.rb,
lib/surveygizmo/configurable.rb,
lib/surveygizmo/client/filter.rb,
lib/surveygizmo/client/survey.rb,
lib/surveygizmo/configuration.rb,
lib/surveygizmo/client/account.rb,
lib/surveygizmo/client/contact.rb,
lib/surveygizmo/client/account_user.rb,
lib/surveygizmo/client/survey_campaign.rb,
lib/surveygizmo/client/survey_question.rb,
lib/surveygizmo/client/survey_response.rb,
lib/surveygizmo/client/survey_statistic.rb

Defined Under Namespace

Modules: Configurable, Configuration, Connection, Request Classes: API, Client

Constant Summary collapse

VERSION =
"0.0.2"

Constants included from Configuration

Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_PASSWORD, Configuration::DEFAULT_USERNAME, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

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

Delegate to Surveygizmo::Client



16
17
18
19
# File 'lib/surveygizmo.rb', line 16

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

.new(options = {}) ⇒ Surveygizmo::Client

Alias for Surveygizmo::Client.new

Returns:



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

def new(options={})
  Surveygizmo::Client.new(options)
end

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

Returns:

  • (Boolean)


21
22
23
# File 'lib/surveygizmo.rb', line 21

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