Class: Pact::Provider::PactVerification
- Inherits:
-
Object
- Object
- Pact::Provider::PactVerification
- Defined in:
- lib/pact/provider/pact_verification.rb
Instance Attribute Summary collapse
-
#consumer_name ⇒ Object
readonly
Returns the value of attribute consumer_name.
-
#ref ⇒ Object
readonly
Returns the value of attribute ref.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(consumer_name, uri, ref) ⇒ PactVerification
constructor
A new instance of PactVerification.
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_name ⇒ Object (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 |
#ref ⇒ Object (readonly)
Returns the value of attribute ref.
3 4 5 |
# File 'lib/pact/provider/pact_verification.rb', line 3 def ref @ref end |
#uri ⇒ Object (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 |