lib/fdoc/endpoint.rb in fdoc-0.2.3 vs lib/fdoc/endpoint.rb in fdoc-0.2.4
- old
+ new
@@ -5,10 +5,10 @@
# The #consume_* methods will raise exceptions if input differs from the schema
class Fdoc::Endpoint
attr_reader :service
attr_reader :endpoint_path
- def initialize(endpoint_path, service=Fdoc::Service::DefaultService)
+ def initialize(endpoint_path, service=Fdoc::Service.default_service)
@endpoint_path = endpoint_path
@schema = YAML.load_file(@endpoint_path)
@service = service
end