lib/pact/consumer_contract/service_provider.rb in pact-1.0.15 vs lib/pact/consumer_contract/service_provider.rb in pact-1.0.18
- old
+ new
@@ -11,11 +11,15 @@
def to_s
name
end
- def as_json options = {}
+ def to_hash
{name: name}
+ end
+
+ def as_json options = {}
+ to_hash
end
def self.from_hash hash
new(symbolize_keys(hash))
end
\ No newline at end of file