Sha256: 1a6798b1776f34c509abec2c86cd6581fd665a59d7486359cf82625a81a724cc

Contents?: true

Size: 736 Bytes

Versions: 1

Compression:

Stored size: 736 Bytes

Contents

require "active_support/core_ext/string"
require "active_support/core_ext/module"
require "active_support/core_ext/hash"
require "active_support/core_ext/object/blank"
require "active_support/concern"
require "virtus"
require "httparty"

require "survey_gizmo/resource"
require "survey_gizmo/collection"

require "survey_gizmo/api/survey"
require "survey_gizmo/api/question"
require "survey_gizmo/api/option"
require "survey_gizmo/api/page"

module SurveyGizmo
  include HTTParty
  
  format :json
  base_uri 'https://restapi.surveygizmo.com/v1'
  @@options = {}
  mattr_accessor :options
  
  def self.setup(opts = {})
    self.options = opts
    default_params({"user:pass" => opts.values_at(:user, :password).join(':')})
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
survey-gizmo-ruby-0.5.0 lib/survey_gizmo/survey_gizmo.rb