class HTTParty::ResponseFragment
Allow access to http_response
and code by delegation on fragment
Attributes
connection[R]
http_response[R]
Public Class Methods
new(fragment, http_response, connection)
click to toggle source
Calls superclass method
# File lib/httparty/response_fragment.rb, line 12 def initialize(fragment, http_response, connection) @fragment = fragment @http_response = http_response @connection = connection super fragment end
Public Instance Methods
code()
click to toggle source
# File lib/httparty/response_fragment.rb, line 8 def code @http_response.code.to_i end