Class: PactBroker::Client::PactBrokerClient
- Inherits:
-
Object
- Object
- PactBroker::Client::PactBrokerClient
- Defined in:
- lib/pact_broker/client/pact_broker_client.rb
Constant Summary collapse
- DEFAULT_OPTIONS =
{base_url: DEFAULT_PACT_BROKER_BASE_URL}
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#client_options ⇒ Object
readonly
Returns the value of attribute client_options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ PactBrokerClient
constructor
A new instance of PactBrokerClient.
- #matrix ⇒ Object
- #pacticipants ⇒ Object
- #pacts ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ PactBrokerClient
Returns a new instance of PactBrokerClient.
17 18 19 20 21 |
# File 'lib/pact_broker/client/pact_broker_client.rb', line 17 def initialize = {} = DEFAULT_OPTIONS.merge() @base_url = [:base_url] @client_options = [:client_options] || {} end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
15 16 17 |
# File 'lib/pact_broker/client/pact_broker_client.rb', line 15 def base_url @base_url end |
#client_options ⇒ Object (readonly)
Returns the value of attribute client_options.
15 16 17 |
# File 'lib/pact_broker/client/pact_broker_client.rb', line 15 def @client_options end |
Instance Method Details
#matrix ⇒ Object
31 32 33 |
# File 'lib/pact_broker/client/pact_broker_client.rb', line 31 def matrix PactBroker::Client::Matrix.new base_url: base_url, client_options: end |
#pacticipants ⇒ Object
23 24 25 |
# File 'lib/pact_broker/client/pact_broker_client.rb', line 23 def pacticipants PactBroker::Client::Pacticipants.new base_url: base_url, client_options: end |
#pacts ⇒ Object
27 28 29 |
# File 'lib/pact_broker/client/pact_broker_client.rb', line 27 def pacts PactBroker::Client::Pacts.new base_url: base_url, client_options: end |