Class: PactBroker::Verifications::PlaceholderVerification

Inherits:
Object
  • Object
show all
Defined in:
lib/pact_broker/verifications/placeholder_verification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePlaceholderVerification

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"
  tags = [OpenStruct.new(name: "master")]
  @provider_version = OpenStruct.new(number: "aaaabbbbccccddddeeeeffff1111222233334444", tags: tags)
  @provider_version_number = @provider_version.number
  @execution_date = DateTime.now
  @created_at = DateTime.now
end

Instance Attribute Details

#build_urlObject

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_nameObject

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_atObject

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_dateObject

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

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/pact_broker/verifications/placeholder_verification.rb', line 4

def id
  @id
end

#numberObject

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_shaObject

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_nameObject

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_versionObject

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_numberObject

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

#successObject

Returns the value of attribute success.



4
5
6
# File 'lib/pact_broker/verifications/placeholder_verification.rb', line 4

def success
  @success
end