Sha256: cc8fcb55ce04ca5949b8acfbfcaf82c242653a2a64711a3a865faf72679f4817

Contents?: true

Size: 315 Bytes

Versions: 1

Compression:

Stored size: 315 Bytes

Contents

module Lenddo
  class Response
    def initialize(http_response)
      @http_response = http_response
    end

    def status
      @http_response.status
    end

    def response_code
      @http_response.response_code
    end

    def body
      JSON.parse(@http_response.body)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lenddo-2.0.0 lib/lenddo/response.rb