Class: Pact::Consumer::Configuration::ServiceConsumer
- Inherits:
-
Object
- Object
- Pact::Consumer::Configuration::ServiceConsumer
- Extended by:
- DSL
- Defined in:
- lib/pact/consumer/configuration/service_consumer.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.
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
#app ⇒ Object
Returns the value of attribute app.
10 11 12 |
# File 'lib/pact/consumer/configuration/service_consumer.rb', line 10 def app @app end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/pact/consumer/configuration/service_consumer.rb', line 10 def name @name end |
#port ⇒ Object
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
#finalize ⇒ Object
32 33 34 35 |
# File 'lib/pact/consumer/configuration/service_consumer.rb', line 32 def finalize validate register_consumer_app if @app end |