lib/ezid/session.rb in ezid-client-0.3.0 vs lib/ezid/session.rb in ezid-client-0.4.0

- old
+ new

@@ -1,10 +1,5 @@ -require "uri" -require "net/http" - -require_relative "request" - module Ezid # # An EZID session # # @api private @@ -18,12 +13,11 @@ def inspect super.sub(/@cookie="[^\"]+"/, "OPEN") end - def open(response) - # XXX raise exception if no cookie? - @cookie = response.cookie if response.cookie + def open(cookie) + @cookie = cookie end def close @cookie = nil end