Class: PactBroker::Contracts::ContractsToPublish
- Inherits:
-
Struct
- Object
- Struct
- PactBroker::Contracts::ContractsToPublish
- Defined in:
- lib/pact_broker/contracts/contracts_to_publish.rb
Instance Attribute Summary collapse
-
#branch ⇒ Object
Returns the value of attribute branch.
-
#build_url ⇒ Object
Returns the value of attribute build_url.
-
#contracts ⇒ Object
Returns the value of attribute contracts.
-
#pacticipant_name ⇒ Object
Returns the value of attribute pacticipant_name.
-
#pacticipant_version_number ⇒ Object
Returns the value of attribute pacticipant_version_number.
-
#tags ⇒ Object
Returns the value of attribute tags.
Class Method Summary collapse
-
.from_hash(pacticipant_name: nil, pacticipant_version_number: nil, tags: nil, branch: nil, build_url: nil, contracts: nil) ⇒ Object
rubocop: disable Metrics/ParameterLists.
Instance Attribute Details
#branch ⇒ Object
Returns the value of attribute branch
3 4 5 |
# File 'lib/pact_broker/contracts/contracts_to_publish.rb', line 3 def branch @branch end |
#build_url ⇒ Object
Returns the value of attribute build_url
3 4 5 |
# File 'lib/pact_broker/contracts/contracts_to_publish.rb', line 3 def build_url @build_url end |
#contracts ⇒ Object
Returns the value of attribute contracts
3 4 5 |
# File 'lib/pact_broker/contracts/contracts_to_publish.rb', line 3 def contracts @contracts end |
#pacticipant_name ⇒ Object
Returns the value of attribute pacticipant_name
3 4 5 |
# File 'lib/pact_broker/contracts/contracts_to_publish.rb', line 3 def pacticipant_name @pacticipant_name end |
#pacticipant_version_number ⇒ Object
Returns the value of attribute 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 |
#tags ⇒ Object
Returns the value of attribute tags
3 4 5 |
# File 'lib/pact_broker/contracts/contracts_to_publish.rb', line 3 def @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, , branch, build_url, contracts) end |