Class: EasyqaApi::Configuration

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

Overview

Saves the default config of gem

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_versionObject

Returns the value of attribute api_version.



6
7
8
# File 'lib/easyqa_api/configuration.rb', line 6

def api_version
  @api_version
end

.urlObject

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_pathString

Generate the valid api path for this api_version

Examples:

EasyqaApi.configuration.api_path #=> '/api/v1/'

Returns:

  • (String)

    api path



12
13
14
# File 'lib/easyqa_api/configuration.rb', line 12

def api_path
  "/api/v#{@api_version}/"
end