Sha256: a0a788e3757ab218d2e3536166569bbe5f9846fd1a011c84d1553ac692dc604d

Contents?: true

Size: 301 Bytes

Versions: 4

Compression:

Stored size: 301 Bytes

Contents

# frozen_string_literal: true

module HubSpot
  module HTTPApiCalls
    module Base
      def response
        JSON.parse(raw_response.body)
      end

      def raw_response
        make_the_call
      end

      def default_headers
        HubSpot::HTTP::DEFAULT_HEADERS
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hub_spot-0.3.1 lib/hub_spot/http_api_calls/base.rb
hub_spot-0.3.0 lib/hub_spot/http_api_calls/base.rb
hub_spot-0.2.1 lib/hub_spot/http_api_calls/base.rb
hub_spot-0.2.0 lib/hub_spot/http_api_calls/base.rb