Sha256: 610d491b0d35b2785a136c93d6d552e298bab562346091a0aa52c70411f58459

Contents?: true

Size: 524 Bytes

Versions: 36

Compression:

Stored size: 524 Bytes

Contents

require 'pact_broker/client/hal'

module PactBroker
  module Client
    module HalClientMethods
      def create_index_entry_point(pact_broker_base_url, pact_broker_client_options)
        PactBroker::Client::Hal::EntryPoint.new(pact_broker_base_url, create_http_client(pact_broker_client_options))
      end

      def create_http_client(pact_broker_client_options)
        PactBroker::Client::Hal::HttpClient.new(pact_broker_client_options.merge(pact_broker_client_options[:basic_auth] || {}))
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
pact_broker-client-1.36.0 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.35.0 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.34.0 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.33.0 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.32.0 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.31.0 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.30.0 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.29.1 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.29.0 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.28.4 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.28.3 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.28.2 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.28.1 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.28.0 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.28 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.27 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.26 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.25 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.24 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.23 lib/pact_broker/client/hal_client_methods.rb