Class: RspecApiDocs::Config
- Inherits:
-
Object
- Object
- RspecApiDocs::Config
- Defined in:
- lib/rspec_api_docs/config.rb
Overview
Used to control the behaviour of the gem.
Instance Attribute Summary collapse
-
#exclude_request_headers ⇒ Object
Returns the value of attribute exclude_request_headers.
-
#exclude_response_headers ⇒ Object
Returns the value of attribute exclude_response_headers.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#renderer ⇒ Object
Returns the value of attribute renderer.
-
#validate_params ⇒ Object
Returns the value of attribute validate_params.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
24 25 26 27 28 29 30 |
# File 'lib/rspec_api_docs/config.rb', line 24 def initialize @output_dir = 'docs' @renderer = :json @validate_params = true @exclude_request_headers = [] @exclude_response_headers = [] end |
Instance Attribute Details
#exclude_request_headers ⇒ Object
Returns the value of attribute exclude_request_headers.
17 18 19 |
# File 'lib/rspec_api_docs/config.rb', line 17 def exclude_request_headers @exclude_request_headers end |
#exclude_response_headers ⇒ Object
Returns the value of attribute exclude_response_headers.
17 18 19 |
# File 'lib/rspec_api_docs/config.rb', line 17 def exclude_response_headers @exclude_response_headers end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
17 18 19 |
# File 'lib/rspec_api_docs/config.rb', line 17 def output_dir @output_dir end |
#renderer ⇒ Object
Returns the value of attribute renderer.
17 18 19 |
# File 'lib/rspec_api_docs/config.rb', line 17 def renderer @renderer end |
#validate_params ⇒ Object
Returns the value of attribute validate_params.
17 18 19 |
# File 'lib/rspec_api_docs/config.rb', line 17 def validate_params @validate_params end |