Class: RspecApiDocumentation::Writers::OpenApiIndex
- Inherits:
-
Object
- Object
- RspecApiDocumentation::Writers::OpenApiIndex
- Defined in:
- lib/rspec_api_documentation/writers/open_api_writer.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#init_config ⇒ Object
readonly
Returns the value of attribute init_config.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(index, configuration, init_config) ⇒ OpenApiIndex
constructor
A new instance of OpenApiIndex.
Constructor Details
#initialize(index, configuration, init_config) ⇒ OpenApiIndex
Returns a new instance of OpenApiIndex.
28 29 30 31 32 |
# File 'lib/rspec_api_documentation/writers/open_api_writer.rb', line 28 def initialize(index, configuration, init_config) @index = index @configuration = configuration @init_config = init_config end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
26 27 28 |
# File 'lib/rspec_api_documentation/writers/open_api_writer.rb', line 26 def configuration @configuration end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
26 27 28 |
# File 'lib/rspec_api_documentation/writers/open_api_writer.rb', line 26 def index @index end |
#init_config ⇒ Object (readonly)
Returns the value of attribute init_config.
26 27 28 |
# File 'lib/rspec_api_documentation/writers/open_api_writer.rb', line 26 def init_config @init_config end |