Sha256: 8b49a23033eaa8eb6d2fb4b97c9806a18a4cf2eee0433c8d5a957503c48b4c38

Contents?: true

Size: 467 Bytes

Versions: 12

Compression:

Stored size: 467 Bytes

Contents

module Qualtrics
  class Configuration
    attr_accessor :version, :user, :token, :library_id, :endpoint, :default_library_id
    DEFAULT_VERSION = '2.3'
    DEFAULT_ENDPOINT = 'https://co1.qualtrics.com/WRAPI/ControlPanel/api.php'

    def initialize(&block)
      block.call(self) if block_given?
      self.version ||= DEFAULT_VERSION
      self.endpoint ||= DEFAULT_ENDPOINT
    end

    def update(&block)
      block.call(self) if block_given?
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
qualtrics-0.6.1 lib/qualtrics/configuration.rb
qualtrics-0.6.0 lib/qualtrics/configuration.rb
qualtrics-0.5.9b lib/qualtrics/configuration.rb
qualtrics-0.5.9 lib/qualtrics/configuration.rb
qualtrics-0.5.8 lib/qualtrics/configuration.rb
qualtrics-0.5.7 lib/qualtrics/configuration.rb
qualtrics-0.5.6 lib/qualtrics/configuration.rb
qualtrics-0.5.5 lib/qualtrics/configuration.rb
qualtrics-0.5.4 lib/qualtrics/configuration.rb
qualtrics-0.5.3 lib/qualtrics/configuration.rb
qualtrics-0.5.2 lib/qualtrics/configuration.rb
qualtrics-0.5.1 lib/qualtrics/configuration.rb