Class: PactBroker::Client::PactHash
- Inherits:
-
Hash
- Object
- Hash
- PactBroker::Client::PactHash
show all
- Defined in:
- lib/pact_broker/client/pact_hash.rb
Instance Method Summary
collapse
Methods inherited from Hash
#compact, #compact!, #except
Instance Method Details
#consumer_name ⇒ Object
10
11
12
|
# File 'lib/pact_broker/client/pact_hash.rb', line 10
def consumer_name
self[:consumer][:name]
end
|
#pact_name ⇒ Object
6
7
8
|
# File 'lib/pact_broker/client/pact_hash.rb', line 6
def pact_name
"#{consumer_name}/#{provider_name} pact"
end
|
#provider_name ⇒ Object
14
15
16
|
# File 'lib/pact_broker/client/pact_hash.rb', line 14
def provider_name
self[:provider][:name]
end
|