Class: Pact::Consumer::Configuration::ServiceConsumer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ ServiceConsumer

Returns a new instance of ServiceConsumer.



12
13
14
15
16
# File 'lib/pact/consumer/configuration/service_consumer.rb', line 12

def initialize name
  @name = name
  @app = nil
  @port = nil
end

Instance Attribute Details

#appObject

Returns the value of attribute app.



10
11
12
# File 'lib/pact/consumer/configuration/service_consumer.rb', line 10

def app
  @app
end

#nameObject

Returns the value of attribute name.



10
11
12
# File 'lib/pact/consumer/configuration/service_consumer.rb', line 10

def name
  @name
end

#portObject

Returns the value of attribute port.



10
11
12
# File 'lib/pact/consumer/configuration/service_consumer.rb', line 10

def port
  @port
end

Instance Method Details

#finalizeObject



32
33
34
35
# File 'lib/pact/consumer/configuration/service_consumer.rb', line 32

def finalize
  validate
  register_consumer_app if @app
end