Class: PactBroker::Client::PactHash

Inherits:
Hash
  • Object
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_nameObject



10
11
12
# File 'lib/pact_broker/client/pact_hash.rb', line 10

def consumer_name
  self[:consumer][:name]
end

#pact_nameObject



6
7
8
# File 'lib/pact_broker/client/pact_hash.rb', line 6

def pact_name
  "#{consumer_name}/#{provider_name} pact"
end

#provider_nameObject



14
15
16
# File 'lib/pact_broker/client/pact_hash.rb', line 14

def provider_name
  self[:provider][:name]
end