Class: PactBroker::Client::Matrix::Query

Inherits:
BaseCommand show all
Defined in:
lib/pact_broker/client/matrix/query.rb

Instance Method Summary collapse

Methods inherited from BaseCommand

call, #initialize

Methods included from HalClientMethods

#create_entry_point, #create_http_client, #create_index_entry_point, #index_entry_point, #index_resource, #is_pactflow?, #pact_broker_name

Constructor Details

This class inherits a constructor from PactBroker::Client::BaseCommand

Instance Method Details

#callObject



10
11
12
13
# File 'lib/pact_broker/client/matrix/query.rb', line 10

def call
  matrix_entity = create_entry_point("#{pact_broker_client_options[:pact_broker_base_url]}/matrix", pact_broker_client_options).get!(query_params)
  Matrix::Resource.new(JSON.parse(matrix_entity.response.raw_body, symbolize_names: true))
end