Sha256: 21105de2618a2ba0f9349cb1022375ab015deb46b9b53ba17484ef6279bf71e7
Contents?: true
Size: 434 Bytes
Versions: 5
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
5 entries across 5 versions & 1 rubygems