class HTTParty::FragmentWithResponse

Allow access to http_response and code by delegation on fragment

Attributes

http_response[R]

Public Class Methods

new(fragment, http_response) click to toggle source
Calls superclass method
# File lib/httparty/fragment_with_response.rb, line 14
def initialize(fragment, http_response)
  @fragment = fragment
  @http_response = http_response
  super fragment
end

Public Instance Methods

code() click to toggle source
# File lib/httparty/fragment_with_response.rb, line 10
def code
  @http_response.code.to_i
end