Class: Webrat::JettyAdapter
- Extended by:
- Forwardable
- Defined in:
- lib/webrat/adapters/jetty.rb
Instance Method Summary collapse
-
#initialize(session) ⇒ JettyAdapter
constructor
:nodoc:.
- #response ⇒ Object
- #response_body ⇒ Object
- #response_code ⇒ Object
Constructor Details
#initialize(session) ⇒ JettyAdapter
:nodoc:
9 10 11 |
# File 'lib/webrat/adapters/jetty.rb', line 9 def initialize(session) #:nodoc: @session = session end |
Instance Method Details
#response ⇒ Object
21 22 23 |
# File 'lib/webrat/adapters/jetty.rb', line 21 def response @session.last_response end |
#response_body ⇒ Object
13 14 15 |
# File 'lib/webrat/adapters/jetty.rb', line 13 def response_body response.body end |
#response_code ⇒ Object
17 18 19 |
# File 'lib/webrat/adapters/jetty.rb', line 17 def response_code response.status end |