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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DSL

build, dsl

Constructor Details

#initialize(name) ⇒ ServiceConsumer

Returns a new instance of ServiceConsumer.



29
30
31
32
33
# File 'lib/pact/consumer/configuration.rb', line 29

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

Instance Attribute Details

#appObject

Returns the value of attribute app.



27
28
29
# File 'lib/pact/consumer/configuration.rb', line 27

def app
  @app
end

#nameObject

Returns the value of attribute name.



27
28
29
# File 'lib/pact/consumer/configuration.rb', line 27

def name
  @name
end

#portObject

Returns the value of attribute port.



27
28
29
# File 'lib/pact/consumer/configuration.rb', line 27

def port
  @port
end

Instance Method Details

#finalizeObject



49
50
51
52
# File 'lib/pact/consumer/configuration.rb', line 49

def finalize
  validate
  register_consumer_app if @app
end