lib/fdoc/endpoint_scaffold.rb in fdoc-0.2.3 vs lib/fdoc/endpoint_scaffold.rb in fdoc-0.2.4
- old
+ new
@@ -1,9 +1,9 @@
# EndpointScaffolds aggregate input to guess at the structure of an API
# endpoint. The #consume_* methods can modify the structure of the
# in-memory endpoint, to save the results to the file system, call #persist!
class Fdoc::EndpointScaffold < Fdoc::Endpoint
- def initialize(endpoint_path, service=Fdoc::Service::DefaultService)
+ def initialize(endpoint_path, service=Fdoc::Service.default_service)
if File.exist?(endpoint_path)
super
else
@endpoint_path = endpoint_path
@schema = {