Class: Mortymer::Configuration
- Inherits:
-
Object
- Object
- Mortymer::Configuration
- Defined in:
- lib/mortymer/configuration.rb
Overview
Global configuration for Mortymer
Instance Attribute Summary collapse
-
#api_description ⇒ Object
Returns the value of attribute api_description.
-
#api_prefix ⇒ Object
Returns the value of attribute api_prefix.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#container ⇒ Object
Returns the value of attribute container.
-
#openapi_servers ⇒ Object
Returns the value of attribute openapi_servers.
-
#security_schemes ⇒ Object
Returns the value of attribute security_schemes.
-
#serve_swagger ⇒ Object
Returns the value of attribute serve_swagger.
-
#swagger_path ⇒ Object
Returns the value of attribute swagger_path.
-
#swagger_root ⇒ Object
Returns the value of attribute swagger_root.
-
#swagger_title ⇒ Object
Returns the value of attribute swagger_title.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/mortymer/configuration.rb', line 24 def initialize @container = Mortymer::Container.new @serve_swagger = true @swagger_title = "Rick & Rails API" @swagger_path = "/api-docs/openapi.json" @swagger_root = "/api-docs" @api_description = "An awsome API developed with MORTYMER" @api_version = "v1" @security_schemes = {} @api_prefix = "/api/v1" @openapi_servers = [] end |
Instance Attribute Details
#api_description ⇒ Object
Returns the value of attribute api_description.
21 22 23 |
# File 'lib/mortymer/configuration.rb', line 21 def api_description @api_description end |
#api_prefix ⇒ Object
Returns the value of attribute api_prefix.
21 22 23 |
# File 'lib/mortymer/configuration.rb', line 21 def api_prefix @api_prefix end |
#api_version ⇒ Object
Returns the value of attribute api_version.
21 22 23 |
# File 'lib/mortymer/configuration.rb', line 21 def api_version @api_version end |
#container ⇒ Object
Returns the value of attribute container.
21 22 23 |
# File 'lib/mortymer/configuration.rb', line 21 def container @container end |
#openapi_servers ⇒ Object
Returns the value of attribute openapi_servers.
21 22 23 |
# File 'lib/mortymer/configuration.rb', line 21 def openapi_servers @openapi_servers end |
#security_schemes ⇒ Object
Returns the value of attribute security_schemes.
21 22 23 |
# File 'lib/mortymer/configuration.rb', line 21 def security_schemes @security_schemes end |
#serve_swagger ⇒ Object
Returns the value of attribute serve_swagger.
21 22 23 |
# File 'lib/mortymer/configuration.rb', line 21 def serve_swagger @serve_swagger end |
#swagger_path ⇒ Object
Returns the value of attribute swagger_path.
21 22 23 |
# File 'lib/mortymer/configuration.rb', line 21 def swagger_path @swagger_path end |
#swagger_root ⇒ Object
Returns the value of attribute swagger_root.
21 22 23 |
# File 'lib/mortymer/configuration.rb', line 21 def swagger_root @swagger_root end |
#swagger_title ⇒ Object
Returns the value of attribute swagger_title.
21 22 23 |
# File 'lib/mortymer/configuration.rb', line 21 def swagger_title @swagger_title end |