Class: Pact::Message::Consumer::Configuration::MessageConsumer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ MessageConsumer

Returns a new instance of MessageConsumer.



14
15
16
# File 'lib/pact/message/consumer/configuration/message_consumer.rb', line 14

def initialize name
  @name = name
end

Instance Attribute Details

#builderObject

Returns the value of attribute builder.



12
13
14
# File 'lib/pact/message/consumer/configuration/message_consumer.rb', line 12

def builder
  @builder
end

#nameObject

Returns the value of attribute name.



12
13
14
# File 'lib/pact/message/consumer/configuration/message_consumer.rb', line 12

def name
  @name
end

Instance Method Details

#finalizeObject



24
25
26
27
# File 'lib/pact/message/consumer/configuration/message_consumer.rb', line 24

def finalize
  validate
  register_consumer_app if @app
end