Class: RWDSession
Instance Attribute Summary collapse
-
#authenticated ⇒ Object
Returns the value of attribute authenticated.
-
#lastaccess ⇒ Object
readonly
Returns the value of attribute lastaccess.
-
#sessionid ⇒ Object
readonly
Returns the value of attribute sessionid.
Instance Method Summary collapse
-
#initialize(sessionid = nil) ⇒ RWDSession
constructor
A new instance of RWDSession.
- #render(res, path, post, download, downloadfile, pda) ⇒ Object
- #touch ⇒ Object
Methods inherited from Hash
file, #ids, #rwd_table, #save, #subset, #to_i
Constructor Details
#initialize(sessionid = nil) ⇒ RWDSession
Returns a new instance of RWDSession.
1161 1162 1163 1164 1165 |
# File 'lib/rwd/rwd.rb', line 1161 def initialize(sessionid=nil) @sessionid = sessionid @lastaccess = Time.now @authenticated = false end |
Instance Attribute Details
#authenticated ⇒ Object
Returns the value of attribute authenticated.
1158 1159 1160 |
# File 'lib/rwd/rwd.rb', line 1158 def authenticated @authenticated end |
#lastaccess ⇒ Object (readonly)
Returns the value of attribute lastaccess.
1157 1158 1159 |
# File 'lib/rwd/rwd.rb', line 1157 def lastaccess @lastaccess end |
#sessionid ⇒ Object (readonly)
Returns the value of attribute sessionid.
1156 1157 1158 |
# File 'lib/rwd/rwd.rb', line 1156 def sessionid @sessionid end |
Instance Method Details
#render(res, path, post, download, downloadfile, pda) ⇒ Object
1171 1172 1173 1174 1175 1176 1177 |
# File 'lib/rwd/rwd.rb', line 1171 def render(res, path, post, download, downloadfile, pda) done = self["object"].render(res, path, post, download, downloadfile, pda, @sessionid) res.gsub!(/\$RWD_SESSION\$/, done ? "" : "#{@sessionid}") return done end |