Class: Restapi::Configuration
- Inherits:
-
Object
- Object
- Restapi::Configuration
- Defined in:
- lib/restapi/restapi_module.rb
Instance Attribute Summary collapse
-
#api_base_url ⇒ Object
Returns the value of attribute api_base_url.
-
#app_info ⇒ Object
Returns the value of attribute app_info.
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#copyright ⇒ Object
Returns the value of attribute copyright.
-
#doc_base_url ⇒ Object
Returns the value of attribute doc_base_url.
-
#markup_language ⇒ Object
Returns the value of attribute markup_language.
-
#validate ⇒ Object
Returns the value of attribute validate.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
37 38 39 40 41 42 43 44 45 |
# File 'lib/restapi/restapi_module.rb', line 37 def initialize @markup_language = :rdoc @app_name = "Another API" @app_info = "Another API description" @copyright = nil @validate = true @api_base_url = "" @doc_base_url = "/restapi" end |
Instance Attribute Details
#api_base_url ⇒ Object
Returns the value of attribute api_base_url.
31 32 33 |
# File 'lib/restapi/restapi_module.rb', line 31 def api_base_url @api_base_url end |
#app_info ⇒ Object
Returns the value of attribute app_info.
31 32 33 |
# File 'lib/restapi/restapi_module.rb', line 31 def app_info @app_info end |
#app_name ⇒ Object
Returns the value of attribute app_name.
31 32 33 |
# File 'lib/restapi/restapi_module.rb', line 31 def app_name @app_name end |
#copyright ⇒ Object
Returns the value of attribute copyright.
31 32 33 |
# File 'lib/restapi/restapi_module.rb', line 31 def copyright @copyright end |
#doc_base_url ⇒ Object
Returns the value of attribute doc_base_url.
31 32 33 |
# File 'lib/restapi/restapi_module.rb', line 31 def doc_base_url @doc_base_url end |
#markup_language ⇒ Object
Returns the value of attribute markup_language.
31 32 33 |
# File 'lib/restapi/restapi_module.rb', line 31 def markup_language @markup_language end |
#validate ⇒ Object
Returns the value of attribute validate.
31 32 33 |
# File 'lib/restapi/restapi_module.rb', line 31 def validate @validate end |