Sha256: 5814f9b19d04a4ca9ac74238ec8ee527e9aaeb77702ca762d7d329e2bf926e0b
Contents?: true
Size: 563 Bytes
Versions: 17
Compression:
Stored size: 563 Bytes
Contents
require_relative 'base_endpoint' module Panoptes module Endpoints class JsonEndpoint < BaseEndpoint # Automatically configured connection to use JSON requests/responses # @see Panoptes::Endpoints::BaseEndpoint#initialize def initialize(auth: {}, url: nil, prefix: nil, &config) super auth: auth, url: url, prefix: prefix do |faraday| config.call(faraday) if config faraday.request :json faraday.response :json faraday.adapter Faraday.default_adapter end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems