Class: Pact::Consumer::Configuration::ServiceProvider
- Inherits:
-
Object
- Object
- Pact::Consumer::Configuration::ServiceProvider
- Extended by:
- DSL
- Defined in:
- lib/pact/consumer/configuration/service_provider.rb
Instance Attribute Summary collapse
-
#consumer_name ⇒ Object
Returns the value of attribute consumer_name.
-
#name ⇒ Object
Returns the value of attribute name.
-
#service ⇒ Object
Returns the value of attribute service.
Instance Method Summary collapse
- #finalize ⇒ Object
-
#initialize(name, consumer_name) ⇒ ServiceProvider
constructor
A new instance of ServiceProvider.
Constructor Details
#initialize(name, consumer_name) ⇒ ServiceProvider
Returns a new instance of ServiceProvider.
13 14 15 16 17 |
# File 'lib/pact/consumer/configuration/service_provider.rb', line 13 def initialize name, consumer_name @name = name @service = nil @consumer_name = consumer_name end |
Instance Attribute Details
#consumer_name ⇒ Object
Returns the value of attribute consumer_name.
11 12 13 |
# File 'lib/pact/consumer/configuration/service_provider.rb', line 11 def consumer_name @consumer_name end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/pact/consumer/configuration/service_provider.rb', line 11 def name @name end |
#service ⇒ Object
Returns the value of attribute service.
11 12 13 |
# File 'lib/pact/consumer/configuration/service_provider.rb', line 11 def service @service end |
Instance Method Details
#finalize ⇒ Object
25 26 27 |
# File 'lib/pact/consumer/configuration/service_provider.rb', line 25 def finalize validate end |