Class: HttpStub::Server::Request::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/http_stub/server/request/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sinatra_request, session_id, session) ⇒ Request

Returns a new instance of Request.


11
12
13
14
15
# File 'lib/http_stub/server/request/request.rb', line 11

def initialize(sinatra_request, session_id, session)
  @sinatra_request = sinatra_request
  @session_id      = session_id
  @session         = session
end

Instance Attribute Details

#sessionObject (readonly)

Returns the value of attribute session


9
10
11
# File 'lib/http_stub/server/request/request.rb', line 9

def session
  @session
end

#session_idObject (readonly)

Returns the value of attribute session_id


9
10
11
# File 'lib/http_stub/server/request/request.rb', line 9

def session_id
  @session_id
end