Class: Testrail::Config

Inherits:
Object
  • Object
show all
Includes:
ActiveSupport::Configurable
Defined in:
lib/testrail/config.rb

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



19
20
21
# File 'lib/testrail/config.rb', line 19

def initialize
  default_config
end

Instance Method Details

#default_configObject



23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/testrail/config.rb', line 23

def default_config
  self.headers = {
    "Accept" => "application/json"
  }
  self.server = "https://example.testrail.com"
  self.version = "api/v2"
  self.api_path = "/index.php?/"
  self.api_key = nil
  self.username = nil
  self.password = nil
  self.logger = Logger.new STDOUT
end