Class: OpenapiMinitest::Configuration
- Inherits:
-
Object
- Object
- OpenapiMinitest::Configuration
- Defined in:
- lib/openapi_minitest/configuration.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#output_path ⇒ Object
Returns the value of attribute output_path.
-
#security_schemes ⇒ Object
Returns the value of attribute security_schemes.
-
#servers ⇒ Object
Returns the value of attribute servers.
-
#sort_paths ⇒ Object
Returns the value of attribute sort_paths.
-
#strict_validation ⇒ Object
Returns the value of attribute strict_validation.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#title ⇒ Object
Returns the value of attribute title.
-
#validate_schema ⇒ Object
Returns the value of attribute validate_schema.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/openapi_minitest/configuration.rb', line 16 def initialize @title = "API Documentation" @version = "1.0.0" @description = nil @output_path = "doc/openapi.yml" @servers = [] @security_schemes = {} @tags = [] @validate_schema = true @strict_validation = false @sort_paths = :alphabetical end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
5 6 7 |
# File 'lib/openapi_minitest/configuration.rb', line 5 def description @description end |
#output_path ⇒ Object
Returns the value of attribute output_path.
5 6 7 |
# File 'lib/openapi_minitest/configuration.rb', line 5 def output_path @output_path end |
#security_schemes ⇒ Object
Returns the value of attribute security_schemes.
5 6 7 |
# File 'lib/openapi_minitest/configuration.rb', line 5 def security_schemes @security_schemes end |
#servers ⇒ Object
Returns the value of attribute servers.
5 6 7 |
# File 'lib/openapi_minitest/configuration.rb', line 5 def servers @servers end |
#sort_paths ⇒ Object
Returns the value of attribute sort_paths.
5 6 7 |
# File 'lib/openapi_minitest/configuration.rb', line 5 def sort_paths @sort_paths end |
#strict_validation ⇒ Object
Returns the value of attribute strict_validation.
5 6 7 |
# File 'lib/openapi_minitest/configuration.rb', line 5 def strict_validation @strict_validation end |
#tags ⇒ Object
Returns the value of attribute tags.
5 6 7 |
# File 'lib/openapi_minitest/configuration.rb', line 5 def @tags end |
#title ⇒ Object
Returns the value of attribute title.
5 6 7 |
# File 'lib/openapi_minitest/configuration.rb', line 5 def title @title end |
#validate_schema ⇒ Object
Returns the value of attribute validate_schema.
5 6 7 |
# File 'lib/openapi_minitest/configuration.rb', line 5 def validate_schema @validate_schema end |
#version ⇒ Object
Returns the value of attribute version.
5 6 7 |
# File 'lib/openapi_minitest/configuration.rb', line 5 def version @version end |