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.
26 27 28 29 30 31 32 |
# File 'lib/h2g_ajaxchat.rb', line 26 def initialize() @session = {} @@id ||= 0 @session[:session_id] = @@id += 1 end |
Instance Method Details
#session ⇒ Object
34 35 36 |
# File 'lib/h2g_ajaxchat.rb', line 34 def session() @session end |