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

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, consumer_name) ⇒ ServiceProvider

Returns a new instance of ServiceProvider.



73
74
75
76
77
# File 'lib/pact/consumer/configuration.rb', line 73

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.



71
72
73
# File 'lib/pact/consumer/configuration.rb', line 71

def consumer_name
  @consumer_name
end

#nameObject

Returns the value of attribute name.



71
72
73
# File 'lib/pact/consumer/configuration.rb', line 71

def name
  @name
end

#serviceObject

Returns the value of attribute service.



71
72
73
# File 'lib/pact/consumer/configuration.rb', line 71

def service
  @service
end

Instance Method Details

#finalizeObject



85
86
87
# File 'lib/pact/consumer/configuration.rb', line 85

def finalize
  validate
end