Class: EasyqaApi::Configuration
- Inherits:
-
Object
- Object
- EasyqaApi::Configuration
- Defined in:
- lib/easyqa_api/configuration.rb
Overview
Saves the default config of gem
Class Attribute Summary collapse
-
.api_version ⇒ Object
Returns the value of attribute api_version.
-
.url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
-
.api_path ⇒ String
Generate the valid api path for this api_version.
Class Attribute Details
.api_version ⇒ Object
Returns the value of attribute api_version.
6 7 8 |
# File 'lib/easyqa_api/configuration.rb', line 6 def api_version @api_version end |
.url ⇒ Object
Returns the value of attribute url.
6 7 8 |
# File 'lib/easyqa_api/configuration.rb', line 6 def url @url end |
Class Method Details
.api_path ⇒ String
Generate the valid api path for this api_version
12 13 14 |
# File 'lib/easyqa_api/configuration.rb', line 12 def api_path "/api/v#{@api_version}/" end |