Class: ATM::Configuration
- Inherits:
-
Object
- Object
- ATM::Configuration
- Defined in:
- lib/atm_ruby/configuration.rb
Overview
:nodoc: TODO
Instance Attribute Summary collapse
-
#auth_type ⇒ Object
Returns the value of attribute auth_type.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#password ⇒ Object
Returns the value of attribute password.
-
#project_id ⇒ Object
Returns the value of attribute project_id.
-
#test_run_id ⇒ Object
Returns the value of attribute test_run_id.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ Configuration
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_type ⇒ Object
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_url ⇒ Object
Returns the value of attribute base_url.
14 15 16 |
# File 'lib/atm_ruby/configuration.rb', line 14 def base_url @base_url end |
#environment ⇒ Object
Returns the value of attribute environment.
14 15 16 |
# File 'lib/atm_ruby/configuration.rb', line 14 def environment @environment end |
#password ⇒ Object
Returns the value of attribute password.
14 15 16 |
# File 'lib/atm_ruby/configuration.rb', line 14 def password @password end |
#project_id ⇒ Object
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_id ⇒ Object
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 |
#username ⇒ Object
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_hash ⇒ Object
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 |