Class: Pactflow::Client::ProviderContracts::PublishTheOldWay

Inherits:
PactBroker::Client::BaseCommand show all
Defined in:
lib/pactflow/client/provider_contracts/publish_the_old_way.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from PactBroker::Client::BaseCommand

call, #call

Methods included from PactBroker::Client::HalClientMethods

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

Constructor Details

#initialize(params, options, pact_broker_client_options) ⇒ PublishTheOldWay

Returns a new instance of PublishTheOldWay.



13
14
15
16
17
18
19
20
21
# File 'lib/pactflow/client/provider_contracts/publish_the_old_way.rb', line 13

def initialize(params, options, pact_broker_client_options)
  super
  @provider_name = params[:provider_name]
  @provider_version_number = params[:provider_version_number]
  @branch_name = params[:branch_name]
  @tags = params[:tags] || []
  @contract = params[:contract]
  @verification_results = params[:verification_results]
end

Instance Attribute Details

#branch_nameObject (readonly)

Returns the value of attribute branch_name.



11
12
13
# File 'lib/pactflow/client/provider_contracts/publish_the_old_way.rb', line 11

def branch_name
  @branch_name
end

#contractObject (readonly)

Returns the value of attribute contract.



11
12
13
# File 'lib/pactflow/client/provider_contracts/publish_the_old_way.rb', line 11

def contract
  @contract
end

#provider_nameObject (readonly)

Returns the value of attribute provider_name.



11
12
13
# File 'lib/pactflow/client/provider_contracts/publish_the_old_way.rb', line 11

def provider_name
  @provider_name
end

#provider_version_numberObject (readonly)

Returns the value of attribute provider_version_number.



11
12
13
# File 'lib/pactflow/client/provider_contracts/publish_the_old_way.rb', line 11

def provider_version_number
  @provider_version_number
end

#tagsObject (readonly)

Returns the value of attribute tags.



11
12
13
# File 'lib/pactflow/client/provider_contracts/publish_the_old_way.rb', line 11

def tags
  @tags
end

#verification_resultsObject (readonly)

Returns the value of attribute verification_results.



11
12
13
# File 'lib/pactflow/client/provider_contracts/publish_the_old_way.rb', line 11

def verification_results
  @verification_results
end