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.27.22 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.21 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.20 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.19 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.14 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.13 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.12 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.11 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.10 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.9 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.8 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.4 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.2 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.1 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.27.0 lib/pact_broker/client/hal_client_methods.rb
pact_broker-client-1.26.0 lib/pact_broker/client/hal_client_methods.rb