Class: DummyRequest
- Inherits:
-
Object
- Object
- DummyRequest
- Defined in:
- lib/h2g_ajaxchat.rb
Instance Method Summary collapse
-
#initialize ⇒ DummyRequest
constructor
A new instance of DummyRequest.
- #session ⇒ Object
Constructor Details
#initialize ⇒ DummyRequest
Returns a new instance of DummyRequest.
11 12 13 14 15 16 17 |
# File 'lib/h2g_ajaxchat.rb', line 11 def initialize() @session = {} @@id ||= 0 @session[:session_id] = @@id += 1 end |
Instance Method Details
#session ⇒ Object
19 20 21 |
# File 'lib/h2g_ajaxchat.rb', line 19 def session() @session end |