Class: Pact::Message::Consumer::Configuration::MessageBuilder

Inherits:
Object
  • Object
show all
Extended by:
DSL
Defined in:
lib/pact/message/consumer/configuration/message_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, consumer_name, provider_name) ⇒ MessageBuilder

Returns a new instance of MessageBuilder.



15
16
17
18
19
20
# File 'lib/pact/message/consumer/configuration/message_builder.rb', line 15

def initialize name, consumer_name, provider_name
  @name = name
  @consumer_name = consumer_name
  @provider_name = provider_name
  @pact_specification_version = nil
end

Instance Attribute Details

#consumer_nameObject

Returns the value of attribute consumer_name.



13
14
15
# File 'lib/pact/message/consumer/configuration/message_builder.rb', line 13

def consumer_name
  @consumer_name
end

#pact_specification_versionObject

Returns the value of attribute pact_specification_version.



13
14
15
# File 'lib/pact/message/consumer/configuration/message_builder.rb', line 13

def pact_specification_version
  @pact_specification_version
end

#provider_nameObject

Returns the value of attribute provider_name.



13
14
15
# File 'lib/pact/message/consumer/configuration/message_builder.rb', line 13

def provider_name
  @provider_name
end

Instance Method Details

#finalizeObject



28
29
30
# File 'lib/pact/message/consumer/configuration/message_builder.rb', line 28

def finalize
  configure_consumer_contract_builder
end