Class: Webrat::RackAdapter

Inherits:
Object show all
Extended by:
Forwardable
Defined in:
lib/webrat/adapters/rack.rb

Direct Known Subclasses

MerbAdapter, SinatraAdapter

Instance Method Summary collapse

Constructor Details

#initialize(session) ⇒ RackAdapter

:nodoc:



9
10
11
# File 'lib/webrat/adapters/rack.rb', line 9

def initialize(session) #:nodoc:
  @session = session
end

Instance Method Details

#responseObject



21
22
23
# File 'lib/webrat/adapters/rack.rb', line 21

def response
  @session.last_response
end

#response_bodyObject



13
14
15
# File 'lib/webrat/adapters/rack.rb', line 13

def response_body
  response.body
end

#response_codeObject



17
18
19
# File 'lib/webrat/adapters/rack.rb', line 17

def response_code
  response.status
end