Module: Surveygizmo

Extended by:
Configurable
Defined in:
lib/surveygizmo.rb,
lib/surveygizmo/api.rb,
lib/surveygizmo/error.rb,
lib/surveygizmo/client.rb,
lib/surveygizmo/request.rb,
lib/surveygizmo/version.rb,
lib/surveygizmo/default.rb,
lib/surveygizmo/response.rb,
lib/surveygizmo/connection.rb,
lib/surveygizmo/configurable.rb,
lib/surveygizmo/client/filter.rb,
lib/surveygizmo/client/survey.rb,
lib/surveygizmo/client/account.rb,
lib/surveygizmo/client/contact.rb,
lib/surveygizmo/client/account_user.rb,
lib/surveygizmo/client/survey_response.rb,
lib/surveygizmo/client/survey_campaign.rb,
lib/surveygizmo/client/survey_question.rb,
lib/surveygizmo/client/survey_statistic.rb,
lib/surveygizmo/response/parse_surveygizmo_response.rb,
lib/surveygizmo/response/raise_error_on_failed_request.rb

Defined Under Namespace

Modules: Configurable, Connection, Default, Request Classes: API, Client, Error, Response

Constant Summary

VERSION =
"0.0.2"

Instance Attribute Summary

Attributes included from Configurable

#connection_options, #endpoint, #middleware, #password, #user_agent, #username

Class Method Summary (collapse)

Methods included from Configurable

configure, credentials?, keys, reset!

Class Method Details

+ (Object) method_missing(method, *args, &block)

Delegate to Surveygizmo::Client



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

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

+ (Surveygizmo::Client) new(options = {})

Alias for Surveygizmo::Client.new



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

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

+ (Boolean) respond_to?(method, include_private = false)



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

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