Sha256: fff525897887a1e86c664315b7e5a417b5c044c06feb081d6e95297aebad5d9a
Contents?: true
Size: 770 Bytes
Versions: 1
Compression:
Stored size: 770 Bytes
Contents
module ConnectWiseRest class << self attr_accessor :configuration end def self.configuration @configuration ||= Configuration.new end def self.configure yield(configuration) end class Configuration attr_accessor :company_id, :private_key, :public_key, :url_prefix, :version, :debug, :logger, :proxy_host, :proxy_port, :proxy_user, :proxy_password, :request_options def initialize @version = '3.0' @debug = false @logger = $stdout end def set(options = {}) options.each { |k, v| self.send("#{k.to_s}=", v) } end def to_hash hash = {} instance_variables.each { |var| hash[var.to_s.delete('@').to_sym] = instance_variable_get(var) } hash end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
connect_wise_rest-0.8.0 | lib/connect_wise_rest/configuration.rb |