class Pact::ServiceProvider
Attributes
name[RW]
Public Class Methods
from_hash(hash)
click to toggle source
# File lib/pact/consumer_contract/service_provider.rb, line 24 def self.from_hash hash new(symbolize_keys(hash)) end
new(options)
click to toggle source
# File lib/pact/consumer_contract/service_provider.rb, line 8 def initialize options @name = options[:name] || '[provider name unknown - please update the pact gem in the consumer project to the latest version and regenerate the pacts]' end
Public Instance Methods
as_json(options = {})
click to toggle source
# File lib/pact/consumer_contract/service_provider.rb, line 20 def as_json options = {} to_hash end
to_hash()
click to toggle source
# File lib/pact/consumer_contract/service_provider.rb, line 16 def to_hash {name: name} end
to_s()
click to toggle source
# File lib/pact/consumer_contract/service_provider.rb, line 12 def to_s name end