Method: Fdoc::EndpointScaffold#initialize
- Defined in:
- lib/fdoc/endpoint_scaffold.rb
#initialize(endpoint_path, service = Fdoc::Service.default_service) ⇒ EndpointScaffold
Returns a new instance of EndpointScaffold.
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/fdoc/endpoint_scaffold.rb', line 5 def initialize(endpoint_path, service=Fdoc::Service.default_service) if File.exist?(endpoint_path) super else @endpoint_path = endpoint_path @schema = { "description" => "???", "responseCodes" => [] } @service = service end end |