class Artifactory::Client

def initialize(options = {})

Returns:
  • (Artifactory::Client) -
def initialize(options = {})
  # Use any options given, but fall back to the defaults set on the module
  Artifactory::Configurable.keys.each do |key|
    value = if options[key].nil?
      Artifactory.instance_variable_get(:"@#{key}")
    else
      options[key]
    end
    instance_variable_set(:"@#{key}", value)
  end
end