Sha256: 44f2cb6894b5ecbc81f71a54480b696b1b952315a6ac67149ecbf9b674750973
Contents?: true
Size: 438 Bytes
Versions: 3
Compression:
Stored size: 438 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.7.0 | lib/ezid/session.rb |
ezid-client-0.6.0 | lib/ezid/session.rb |
ezid-client-0.5.0 | lib/ezid/session.rb |