Class: Mortymer::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/mortymer/configuration.rb

Overview

Global configuration for Mortymer

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_descriptionObject

Returns the value of attribute api_description.



21
22
23
# File 'lib/mortymer/configuration.rb', line 21

def api_description
  @api_description
end

#api_prefixObject

Returns the value of attribute api_prefix.



21
22
23
# File 'lib/mortymer/configuration.rb', line 21

def api_prefix
  @api_prefix
end

#api_versionObject

Returns the value of attribute api_version.



21
22
23
# File 'lib/mortymer/configuration.rb', line 21

def api_version
  @api_version
end

#containerObject

Returns the value of attribute container.



21
22
23
# File 'lib/mortymer/configuration.rb', line 21

def container
  @container
end

#openapi_serversObject

Returns the value of attribute openapi_servers.



21
22
23
# File 'lib/mortymer/configuration.rb', line 21

def openapi_servers
  @openapi_servers
end

#security_schemesObject

Returns the value of attribute security_schemes.



21
22
23
# File 'lib/mortymer/configuration.rb', line 21

def security_schemes
  @security_schemes
end

#serve_swaggerObject

Returns the value of attribute serve_swagger.



21
22
23
# File 'lib/mortymer/configuration.rb', line 21

def serve_swagger
  @serve_swagger
end

#swagger_pathObject

Returns the value of attribute swagger_path.



21
22
23
# File 'lib/mortymer/configuration.rb', line 21

def swagger_path
  @swagger_path
end

#swagger_rootObject

Returns the value of attribute swagger_root.



21
22
23
# File 'lib/mortymer/configuration.rb', line 21

def swagger_root
  @swagger_root
end

#swagger_titleObject

Returns the value of attribute swagger_title.



21
22
23
# File 'lib/mortymer/configuration.rb', line 21

def swagger_title
  @swagger_title
end