Class: Ezid::Session Private
- Inherits:
-
Object
- Object
- Ezid::Session
- Defined in:
- lib/ezid/session.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
An EZID session
Instance Attribute Summary collapse
- #cookie ⇒ Object readonly private
Instance Method Summary collapse
- #close ⇒ Object private
- #closed? ⇒ Boolean private
-
#initialize(cookie = nil) ⇒ Session
constructor
private
A new instance of Session.
- #inspect ⇒ Object private
- #open(cookie) ⇒ Object private
- #open? ⇒ Boolean private
Constructor Details
#initialize(cookie = nil) ⇒ Session
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Session.
11 12 13 |
# File 'lib/ezid/session.rb', line 11 def initialize(=nil) open() if end |
Instance Attribute Details
#cookie ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/ezid/session.rb', line 9 def @cookie end |
Instance Method Details
#close ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 |
# File 'lib/ezid/session.rb', line 23 def close @cookie = nil end |
#closed? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
27 28 29 |
# File 'lib/ezid/session.rb', line 27 def closed? .nil? end |
#inspect ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/ezid/session.rb', line 15 def inspect super.sub(/@cookie="[^\"]+"/, "OPEN") end |
#open(cookie) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 |
# File 'lib/ezid/session.rb', line 19 def open() @cookie = end |
#open? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
31 32 33 |
# File 'lib/ezid/session.rb', line 31 def open? !closed? end |