Class: PactBroker::Contracts::ContractsToPublish

Inherits:
Struct
  • Object
show all
Defined in:
lib/pact_broker/contracts/contracts_to_publish.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#branchObject

Returns the value of attribute branch

Returns:

  • (Object)

    the current value of branch



3
4
5
# File 'lib/pact_broker/contracts/contracts_to_publish.rb', line 3

def branch
  @branch
end

#build_urlObject

Returns the value of attribute build_url

Returns:

  • (Object)

    the current value of build_url



3
4
5
# File 'lib/pact_broker/contracts/contracts_to_publish.rb', line 3

def build_url
  @build_url
end

#contractsObject

Returns the value of attribute contracts

Returns:

  • (Object)

    the current value of contracts



3
4
5
# File 'lib/pact_broker/contracts/contracts_to_publish.rb', line 3

def contracts
  @contracts
end

#pacticipant_nameObject

Returns the value of attribute pacticipant_name

Returns:

  • (Object)

    the current value of pacticipant_name



3
4
5
# File 'lib/pact_broker/contracts/contracts_to_publish.rb', line 3

def pacticipant_name
  @pacticipant_name
end

#pacticipant_version_numberObject

Returns the value of attribute pacticipant_version_number

Returns:

  • (Object)

    the current value of pacticipant_version_number



3
4
5
# File 'lib/pact_broker/contracts/contracts_to_publish.rb', line 3

def pacticipant_version_number
  @pacticipant_version_number
end

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



3
4
5
# File 'lib/pact_broker/contracts/contracts_to_publish.rb', line 3

def tags
  @tags
end

Class Method Details

.from_hash(pacticipant_name: nil, pacticipant_version_number: nil, tags: nil, branch: nil, build_url: nil, contracts: nil) ⇒ Object

rubocop: disable Metrics/ParameterLists



5
6
7
# File 'lib/pact_broker/contracts/contracts_to_publish.rb', line 5

def self.from_hash(pacticipant_name: nil, pacticipant_version_number: nil, tags: nil, branch: nil, build_url: nil, contracts: nil)
  new(pacticipant_name, pacticipant_version_number, tags, branch, build_url, contracts)
end