Sha256: 935fcb1c1254bc3ef1f277bfda238ce9e382ea7ba282fb5fff77e471b91c330e

Contents?: true

Size: 456 Bytes

Versions: 13

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

module AutotaskRuby
  class Configuration
    attr_accessor :integration_code
    attr_accessor :version
    attr_accessor :namespace

    def initialize
      @integration_code = nil
      @version = 1.5
      @namespace = 'http://autotask.net/ATWS/v1_5/'
    end
  end

  class << self
    def configuration
      @configuration ||= Configuration.new
    end

    def configure
      yield(configuration)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
autotask_ruby-2.4.2 lib/autotask_ruby/configuration.rb
autotask_ruby-2.4.1 lib/autotask_ruby/configuration.rb
autotask_ruby-2.4.0 lib/autotask_ruby/configuration.rb
autotask_ruby-2.3.2 lib/autotask_ruby/configuration.rb
autotask_ruby-2.3.1 lib/autotask_ruby/configuration.rb
autotask_ruby-2.3.0 lib/autotask_ruby/configuration.rb
autotask_ruby-2.2.0 lib/autotask_ruby/configuration.rb
autotask_ruby-2.1.3 lib/autotask_ruby/configuration.rb
autotask_ruby-2.1.2 lib/autotask_ruby/configuration.rb
autotask_ruby-2.1.1 lib/autotask_ruby/configuration.rb
autotask_ruby-2.1.0 lib/autotask_ruby/configuration.rb
autotask_ruby-2.0.1 lib/autotask_ruby/configuration.rb
autotask_ruby-2.0.0 lib/autotask_ruby/configuration.rb