Class: ATM::Configuration

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

Overview

:nodoc: TODO

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



18
19
20
21
22
23
24
25
26
# File 'lib/atm_ruby/configuration.rb', line 18

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

Instance Attribute Details

#auth_typeObject

Returns the value of attribute auth_type.



14
15
16
# File 'lib/atm_ruby/configuration.rb', line 14

def auth_type
  @auth_type
end

#base_urlObject

Returns the value of attribute base_url.



14
15
16
# File 'lib/atm_ruby/configuration.rb', line 14

def base_url
  @base_url
end

#environmentObject

Returns the value of attribute environment.



14
15
16
# File 'lib/atm_ruby/configuration.rb', line 14

def environment
  @environment
end

#passwordObject

Returns the value of attribute password.



14
15
16
# File 'lib/atm_ruby/configuration.rb', line 14

def password
  @password
end

#project_idObject

Returns the value of attribute project_id.



14
15
16
# File 'lib/atm_ruby/configuration.rb', line 14

def project_id
  @project_id
end

#test_run_idObject

Returns the value of attribute test_run_id.



14
15
16
# File 'lib/atm_ruby/configuration.rb', line 14

def test_run_id
  @test_run_id
end

#usernameObject

Returns the value of attribute username.



14
15
16
# File 'lib/atm_ruby/configuration.rb', line 14

def username
  @username
end

Instance Method Details

#to_hashObject



28
29
30
31
32
33
34
# File 'lib/atm_ruby/configuration.rb', line 28

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