class HTTParty::ResponseFragment
Allow access to http_response
and code by delegation on fragment
Attributes
Public Class Methods
Source
# File lib/httparty/response_fragment.rb, line 14 def initialize(fragment, http_response, connection) @fragment = fragment @http_response = http_response @connection = connection super fragment end
Calls superclass method
Public Instance Methods
Source
# File lib/httparty/response_fragment.rb, line 10 def code @http_response.code.to_i end