Class: Parse::NetHttpClient::NetHttpResponseWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/parse/http_client.rb

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ NetHttpResponseWrapper

Returns a new instance of NetHttpResponseWrapper.



23
# File 'lib/parse/http_client.rb', line 23

def initialize(response) @response = response end

Instance Method Details

#bodyObject



25
# File 'lib/parse/http_client.rb', line 25

def body() @response.read_body end

#statusObject



24
# File 'lib/parse/http_client.rb', line 24

def status() @response.code.to_i end