Module: PactBroker::Client::HalClientMethods
- Included in:
- Pacticipants2::Create, Pacts::ListLatestVersions
- Defined in:
- lib/pact_broker/client/hal_client_methods.rb
Instance Method Summary collapse
- #create_http_client(pact_broker_client_options) ⇒ Object
- #create_index_entry_point(pact_broker_base_url, pact_broker_client_options) ⇒ Object
Instance Method Details
#create_http_client(pact_broker_client_options) ⇒ Object
10 11 12 |
# File 'lib/pact_broker/client/hal_client_methods.rb', line 10 def create_http_client() PactBroker::Client::Hal::HttpClient.new(.merge([:basic_auth] || {})) end |
#create_index_entry_point(pact_broker_base_url, pact_broker_client_options) ⇒ Object
6 7 8 |
# File 'lib/pact_broker/client/hal_client_methods.rb', line 6 def create_index_entry_point(pact_broker_base_url, ) PactBroker::Client::Hal::EntryPoint.new(pact_broker_base_url, create_http_client()) end |