Module: MarbleApiClient::Responses::HttpMethods

Included in:
ClientError, ServerError, Success
Defined in:
lib/marble_api_client/responses/http_methods.rb

Overview

This module requires a “response” method which returns an instance of Net::HTTPResponse.

Instance Method Summary collapse

Instance Method Details

#bodyObject



18
19
20
# File 'lib/marble_api_client/responses/http_methods.rb', line 18

def body
  @response.body
end

#codeObject



14
15
16
# File 'lib/marble_api_client/responses/http_methods.rb', line 14

def code
  @response.code
end