Class: Botch::Client::MechanizeResponseError

Inherits:
Object
  • Object
show all
Defined in:
lib/botch/clients/mechanize_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject

Returns the value of attribute body.



6
7
8
# File 'lib/botch/clients/mechanize_client.rb', line 6

def body
  @body
end

#codeObject

Returns the value of attribute code.



6
7
8
# File 'lib/botch/clients/mechanize_client.rb', line 6

def code
  @code
end

#headerObject

Returns the value of attribute header.



6
7
8
# File 'lib/botch/clients/mechanize_client.rb', line 6

def header
  @header
end