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
# File 'lib/testrail/config.rb', line 23

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