# File lib/base_object.rb, line 79 def add_authentication!(auth_type, values=[]) value = { :key => (values/'login/keyname').text.strip } if auth_type == 'key' if auth_type == 'password' value = { :username => (values/'login/username').text.strip, :username => (values/'login/password').text.strip } end @objects << { :type => :collection, :method_name => 'authentication', :values => value } end