Class: ApiRegulator::Configuration
- Inherits:
-
Object
- Object
- ApiRegulator::Configuration
- Defined in:
- lib/api_regulator/configuration.rb
Instance Attribute Summary collapse
-
#api_base_url ⇒ Object
Returns the value of attribute api_base_url.
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#default_version ⇒ Object
Returns the value of attribute default_version.
-
#docs_path ⇒ Object
Returns the value of attribute docs_path.
-
#servers ⇒ Object
Returns the value of attribute servers.
-
#versions ⇒ Object
Returns the value of attribute versions.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 |
# File 'lib/api_regulator/configuration.rb', line 5 def initialize # Set default values @api_base_url = "api/v2" @app_name = "API Documentation" @docs_path = "doc" @servers = [] end |
Instance Attribute Details
#api_base_url ⇒ Object
Returns the value of attribute api_base_url.
3 4 5 |
# File 'lib/api_regulator/configuration.rb', line 3 def api_base_url @api_base_url end |
#app_name ⇒ Object
Returns the value of attribute app_name.
3 4 5 |
# File 'lib/api_regulator/configuration.rb', line 3 def app_name @app_name end |
#default_version ⇒ Object
Returns the value of attribute default_version.
3 4 5 |
# File 'lib/api_regulator/configuration.rb', line 3 def default_version @default_version end |
#docs_path ⇒ Object
Returns the value of attribute docs_path.
3 4 5 |
# File 'lib/api_regulator/configuration.rb', line 3 def docs_path @docs_path end |
#servers ⇒ Object
Returns the value of attribute servers.
3 4 5 |
# File 'lib/api_regulator/configuration.rb', line 3 def servers @servers end |
#versions ⇒ Object
Returns the value of attribute versions.
3 4 5 |
# File 'lib/api_regulator/configuration.rb', line 3 def versions @versions end |