Class: Pact::Message::Consumer::Configuration::MessageBuilder
- Inherits:
-
Object
- Object
- Pact::Message::Consumer::Configuration::MessageBuilder
- Extended by:
- DSL
- Defined in:
- lib/pact/message/consumer/configuration/message_builder.rb
Instance Attribute Summary collapse
-
#consumer_name ⇒ Object
Returns the value of attribute consumer_name.
-
#pact_specification_version ⇒ Object
Returns the value of attribute pact_specification_version.
-
#provider_name ⇒ Object
Returns the value of attribute provider_name.
Instance Method Summary collapse
- #finalize ⇒ Object
-
#initialize(name, consumer_name, provider_name) ⇒ MessageBuilder
constructor
A new instance of MessageBuilder.
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_name ⇒ Object
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_version ⇒ Object
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_name ⇒ Object
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
#finalize ⇒ Object
28 29 30 |
# File 'lib/pact/message/consumer/configuration/message_builder.rb', line 28 def finalize configure_consumer_contract_builder end |