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.
1144 1145 1146 1147 1148 |
# File 'lib/rwd/rwd.rb', line 1144 def initialize(sessionid=nil) @sessionid = sessionid @lastaccess = Time.now @authenticated = false end |
Instance Attribute Details
#authenticated ⇒ Object
Returns the value of attribute authenticated.
1141 1142 1143 |
# File 'lib/rwd/rwd.rb', line 1141 def authenticated @authenticated end |
#lastaccess ⇒ Object (readonly)
Returns the value of attribute lastaccess.
1140 1141 1142 |
# File 'lib/rwd/rwd.rb', line 1140 def lastaccess @lastaccess end |
#sessionid ⇒ Object (readonly)
Returns the value of attribute sessionid.
1139 1140 1141 |
# File 'lib/rwd/rwd.rb', line 1139 def sessionid @sessionid end |
Instance Method Details
#render(res, path, post, download, downloadfile, pda) ⇒ Object
1154 1155 1156 1157 1158 1159 1160 |
# File 'lib/rwd/rwd.rb', line 1154 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 |