Class: RestApiGenerator::Spec::RswagGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
Helpers
Defined in:
lib/generators/rest_api_generator/spec/rswag_generator.rb

Constant Summary

Constants included from Helpers

Helpers::API_CONTROLLER_DIR_PATH, Helpers::API_DOCS_DIR_PATH, Helpers::API_TEST_DIR_PATH

Instance Attribute Summary

Attributes included from Helpers

#attributes, #options

Instance Method Summary collapse

Instance Method Details

#create_service_fileObject



17
18
19
# File 'lib/generators/rest_api_generator/spec/rswag_generator.rb', line 17

def create_service_file
  template spec_controller_template, controller_test_path
end