lib/tango/default.rb in tango-client-1.0.1 vs lib/tango/default.rb in tango-client-1.0.2
- old
+ new
@@ -46,11 +46,19 @@
@options ||= {
:username => ENV['TANGO_USERNAME'] || 'third_party_int@tangocard.com',
:password => ENV['TANGO_PASSWORD'] || 'integrateme',
:endpoint => ENV['TANGO_ENDPOINT'] || ENDPOINT,
:version => VERSION,
- :middleware => MIDDLEWARE.dup,
- :connection_options => CONNECTION_OPTIONS.clone
+ :middleware => MIDDLEWARE,
+ :connection_options => CONNECTION_OPTIONS
}
+ end
+
+ def self.template
+ template = options.dup
+ template[:middleware] = options[:middleware].dup
+ template[:connection_options] = options[:connection_options].dup
+
+ template
end
end
end