Class: Pact::Consumer::Configuration::ServiceConsumer
- Inherits:
-
Object
- Object
- Pact::Consumer::Configuration::ServiceConsumer
- Extended by:
- DSL
- Defined in:
- lib/pact/consumer/configuration.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
-
#name ⇒ Object
Returns the value of attribute name.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
- #finalize ⇒ Object
-
#initialize(name) ⇒ ServiceConsumer
constructor
A new instance of ServiceConsumer.
Methods included from 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
#app ⇒ Object
Returns the value of attribute app.
27 28 29 |
# File 'lib/pact/consumer/configuration.rb', line 27 def app @app end |
#name ⇒ Object
Returns the value of attribute name.
27 28 29 |
# File 'lib/pact/consumer/configuration.rb', line 27 def name @name end |
#port ⇒ Object
Returns the value of attribute port.
27 28 29 |
# File 'lib/pact/consumer/configuration.rb', line 27 def port @port end |
Instance Method Details
#finalize ⇒ Object
49 50 51 52 |
# File 'lib/pact/consumer/configuration.rb', line 49 def finalize validate register_consumer_app if @app end |