Sha256: 52fd8286298d1a009bfeb1d1ffd5b536493ec61e6a9485f36a925b175766efb1

Contents?: true

Size: 495 Bytes

Versions: 2

Compression:

Stored size: 495 Bytes

Contents

module SurveyGizmo
  class << self
    attr_accessor :configuration
  end

  def self.configure
    self.configuration ||= Configuration.new
    yield(configuration) if block_given?
    SurveyGizmo.setup
  end

  def self.reset!
    self.configuration = Configuration.new
  end

  class Configuration
    DEFAULT_API_VERSION = 'v4'

    attr_accessor :api_version
    attr_accessor :user
    attr_accessor :password

    def initialize
      @api_version = DEFAULT_API_VERSION
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
survey-gizmo-ruby-4.0.0 lib/survey_gizmo/configuration.rb
survey-gizmo-ruby-3.0.3 lib/survey_gizmo/configuration.rb