Class: Pact::Consumer::Configuration::ServiceProvider

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject

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

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/pact/consumer/configuration/service_provider.rb', line 11

def name
  @name
end

#serviceObject

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

#finalizeObject



25
26
27
# File 'lib/pact/consumer/configuration/service_provider.rb', line 25

def finalize
  validate
end