Class: Botch::Client::MechanizeResponseError
- Inherits:
-
Object
- Object
- Botch::Client::MechanizeResponseError
- Defined in:
- lib/botch/clients/mechanize_client.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#code ⇒ Object
Returns the value of attribute code.
-
#header ⇒ Object
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize(response_error) ⇒ MechanizeResponseError
constructor
A new instance of MechanizeResponseError.
Constructor Details
#initialize(response_error) ⇒ MechanizeResponseError
Returns a new instance of MechanizeResponseError.
8 9 10 11 12 13 |
# File 'lib/botch/clients/mechanize_client.rb', line 8 def initialize(response_error) @code = response_error.response_code @body = "" @header = Mechanize::Headers.new @response = response_error end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
6 7 8 |
# File 'lib/botch/clients/mechanize_client.rb', line 6 def body @body end |
#code ⇒ Object
Returns the value of attribute code.
6 7 8 |
# File 'lib/botch/clients/mechanize_client.rb', line 6 def code @code end |
#header ⇒ Object
Returns the value of attribute header.
6 7 8 |
# File 'lib/botch/clients/mechanize_client.rb', line 6 def header @header end |