Class: PactBroker::Verifications::PlaceholderVerification
- Inherits:
-
Object
- Object
- PactBroker::Verifications::PlaceholderVerification
- Defined in:
- lib/pact_broker/verifications/placeholder_verification.rb
Instance Attribute Summary collapse
-
#build_url ⇒ Object
Returns the value of attribute build_url.
-
#consumer_name ⇒ Object
Returns the value of attribute consumer_name.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#execution_date ⇒ Object
Returns the value of attribute execution_date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#number ⇒ Object
Returns the value of attribute number.
-
#pact_version_sha ⇒ Object
Returns the value of attribute pact_version_sha.
-
#provider_name ⇒ Object
Returns the value of attribute provider_name.
-
#provider_version ⇒ Object
Returns the value of attribute provider_version.
-
#provider_version_number ⇒ Object
Returns the value of attribute provider_version_number.
-
#success ⇒ Object
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize ⇒ PlaceholderVerification
constructor
A new instance of PlaceholderVerification.
Constructor Details
#initialize ⇒ PlaceholderVerification
Returns a new instance of PlaceholderVerification.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/pact_broker/verifications/placeholder_verification.rb', line 9 def initialize @provider_name = "placeholder-provider" @consumer_name = "placeholder-consumer" @number = 1 @success = true @pact_version_sha = "5d445a4612743728dfd99ccd4210423c052bb9db" = [OpenStruct.new(name: "master")] @provider_version = OpenStruct.new(number: "aaaabbbbccccddddeeeeffff1111222233334444", tags: ) @provider_version_number = @provider_version.number @execution_date = DateTime.now @created_at = DateTime.now end |
Instance Attribute Details
#build_url ⇒ Object
Returns the value of attribute build_url.
4 5 6 |
# File 'lib/pact_broker/verifications/placeholder_verification.rb', line 4 def build_url @build_url end |
#consumer_name ⇒ Object
Returns the value of attribute consumer_name.
4 5 6 |
# File 'lib/pact_broker/verifications/placeholder_verification.rb', line 4 def consumer_name @consumer_name end |
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/pact_broker/verifications/placeholder_verification.rb', line 4 def created_at @created_at end |
#execution_date ⇒ Object
Returns the value of attribute execution_date.
4 5 6 |
# File 'lib/pact_broker/verifications/placeholder_verification.rb', line 4 def execution_date @execution_date end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/pact_broker/verifications/placeholder_verification.rb', line 4 def id @id end |
#number ⇒ Object
Returns the value of attribute number.
4 5 6 |
# File 'lib/pact_broker/verifications/placeholder_verification.rb', line 4 def number @number end |
#pact_version_sha ⇒ Object
Returns the value of attribute pact_version_sha.
4 5 6 |
# File 'lib/pact_broker/verifications/placeholder_verification.rb', line 4 def pact_version_sha @pact_version_sha end |
#provider_name ⇒ Object
Returns the value of attribute provider_name.
4 5 6 |
# File 'lib/pact_broker/verifications/placeholder_verification.rb', line 4 def provider_name @provider_name end |
#provider_version ⇒ Object
Returns the value of attribute provider_version.
4 5 6 |
# File 'lib/pact_broker/verifications/placeholder_verification.rb', line 4 def provider_version @provider_version end |
#provider_version_number ⇒ Object
Returns the value of attribute provider_version_number.
4 5 6 |
# File 'lib/pact_broker/verifications/placeholder_verification.rb', line 4 def provider_version_number @provider_version_number end |
#success ⇒ Object
Returns the value of attribute success.
4 5 6 |
# File 'lib/pact_broker/verifications/placeholder_verification.rb', line 4 def success @success end |