Sha256: 5f07b5d5200615e6ae448545d60ace024dde84e769fd5560c67a91636bd83be4
Contents?: true
Size: 434 Bytes
Versions: 3
Compression:
Stored size: 434 Bytes
Contents
module Ezid # # An EZID session # # @api private class Session attr_reader :cookie def initialize(response=nil) open(response) if response end def inspect super.sub(/@cookie="[^\"]+"/, "OPEN") end def open(cookie) @cookie = cookie end def close @cookie = nil end def closed? cookie.nil? end def open? !closed? end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ezid-client-0.4.2 | lib/ezid/session.rb |
ezid-client-0.4.1 | lib/ezid/session.rb |
ezid-client-0.4.0 | lib/ezid/session.rb |