Class: Pact::Provider::PactVerification

Inherits:
Object
  • Object
show all
Defined in:
lib/pact/provider/pact_verification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(consumer_name, uri, ref) ⇒ PactVerification

Returns a new instance of PactVerification.



4
5
6
7
8
# File 'lib/pact/provider/pact_verification.rb', line 4

def initialize consumer_name, uri, ref
   @consumer_name = consumer_name
   @uri = uri
   @ref = ref
end

Instance Attribute Details

#consumer_nameObject (readonly)

Returns the value of attribute consumer_name.



3
4
5
# File 'lib/pact/provider/pact_verification.rb', line 3

def consumer_name
  @consumer_name
end

#refObject (readonly)

Returns the value of attribute ref.



3
4
5
# File 'lib/pact/provider/pact_verification.rb', line 3

def ref
  @ref
end

#uriObject (readonly)

Returns the value of attribute uri.



3
4
5
# File 'lib/pact/provider/pact_verification.rb', line 3

def uri
  @uri
end

Instance Method Details

#==(other) ⇒ Object



10
11
12
13
14
15
# File 'lib/pact/provider/pact_verification.rb', line 10

def == other
  other.is_a?(PactVerification) &&
    consumer_name == other.consumer_name &&
    uri == other.uri &&
    ref == other.ref
end