Class: OpenAPIRest::ApiConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/openapi_rest/api_config.rb

Overview

Api doc config based on OpenAPI specs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user_config = {}) ⇒ ApiConfig

Returns a new instance of ApiConfig.



8
9
10
# File 'lib/openapi_rest/api_config.rb', line 8

def initialize(user_config = {})
  self.document = user_config[:document]
end

Instance Attribute Details

#documentObject

Returns the value of attribute document.



6
7
8
# File 'lib/openapi_rest/api_config.rb', line 6

def document
  @document
end