Class: ATMFormatter::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/configuration.rb', line 15

def initialize
  @base_url    = nil
  @test_run_id = nil
  @project_id  = nil
  @environment = nil
  @username    = nil
  @password    = nil
  @auth_type   = nil
  @result_formatter_options      = nil
  @create_test_formatter_options = nil
end

Instance Attribute Details

#auth_typeObject

Returns the value of attribute auth_type.



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

def auth_type
  @auth_type
end

#base_urlObject

Returns the value of attribute base_url.



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

def base_url
  @base_url
end

#create_test_formatter_optionsObject

Returns the value of attribute create_test_formatter_options.



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

def create_test_formatter_options
  @create_test_formatter_options
end

#environmentObject

Returns the value of attribute environment.



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

def environment
  @environment
end

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#project_idObject

Returns the value of attribute project_id.



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

def project_id
  @project_id
end

#result_formatter_optionsObject

Returns the value of attribute result_formatter_options.



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

def result_formatter_options
  @result_formatter_options
end

#test_run_idObject

Returns the value of attribute test_run_id.



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

def test_run_id
  @test_run_id
end

#usernameObject

Returns the value of attribute username.



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

def username
  @username
end

Instance Method Details

#to_hashObject



27
28
29
30
31
# File 'lib/configuration.rb', line 27

def to_hash
  hash = {}
  instance_variables.each { |var| hash[var.to_s.delete('@').to_sym] = instance_variable_get(var) }
  hash
end