lib/ezid/requests/request.rb in ezid-client-1.1.1 vs lib/ezid/requests/request.rb in ezid-client-1.2.0
- old
+ new
@@ -30,11 +30,11 @@
request.execute
end
def short_name
name.split("::").last.sub("Request", "")
- end
+ end
end
attr_reader :client
def_delegators :client, :connection, :user, :password, :session
@@ -88,13 +88,13 @@
end
private
def get_response_for_request
- connection.start do |conn|
+ connection.start do |conn|
add_authentication if authentication_required?
add_metadata if has_metadata?
- conn.request(__getobj__)
+ conn.request(__getobj__)
end
end
def build_request
self.class.http_method.new(uri)