Class: Minitest::OpenAPI::UI::Configuration
- Inherits:
-
Object
- Object
- Minitest::OpenAPI::UI::Configuration
- Defined in:
- lib/minitest/openapi/ui/configuration.rb
Instance Attribute Summary collapse
-
#openapi_url ⇒ Object
URL the Swagger UI page loads the OpenAPI document from.
-
#page_title ⇒ Object
Page
. -
#swagger_ui_version ⇒ Object
swagger-ui-dist version loaded from the jsDelivr CDN.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 |
# File 'lib/minitest/openapi/ui/configuration.rb', line 17 def initialize @openapi_url = "/api-docs" @page_title = "API documentation" @swagger_ui_version = "5.17.14" end |
Instance Attribute Details
#openapi_url ⇒ Object
URL the Swagger UI page loads the OpenAPI document from. Point this at wherever minitest-openapi-api is mounted.
9 10 11 |
# File 'lib/minitest/openapi/ui/configuration.rb', line 9 def openapi_url @openapi_url end |
#page_title ⇒ Object
Page
12 13 14 |
# File 'lib/minitest/openapi/ui/configuration.rb', line 12 def page_title @page_title end |
#swagger_ui_version ⇒ Object
swagger-ui-dist version loaded from the jsDelivr CDN.
15 16 17 |
# File 'lib/minitest/openapi/ui/configuration.rb', line 15 def swagger_ui_version @swagger_ui_version end |