Class: ATMFormatter::Configuration
- Inherits:
-
Object
- Object
- ATMFormatter::Configuration
- Defined in:
- lib/configuration.rb
Instance Attribute Summary collapse
-
#auth_type ⇒ Object
Returns the value of attribute auth_type.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#create_test_formatter_options ⇒ Object
Returns the value of attribute create_test_formatter_options.
-
#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.
-
#result_formatter_options ⇒ Object
Returns the value of attribute result_formatter_options.
-
#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.
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_type ⇒ Object
Returns the value of attribute auth_type.
12 13 14 |
# File 'lib/configuration.rb', line 12 def auth_type @auth_type end |
#base_url ⇒ Object
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_options ⇒ Object
Returns the value of attribute create_test_formatter_options.
12 13 14 |
# File 'lib/configuration.rb', line 12 def @create_test_formatter_options end |
#environment ⇒ Object
Returns the value of attribute environment.
12 13 14 |
# File 'lib/configuration.rb', line 12 def environment @environment end |
#password ⇒ Object
Returns the value of attribute password.
12 13 14 |
# File 'lib/configuration.rb', line 12 def password @password end |
#project_id ⇒ Object
Returns the value of attribute project_id.
12 13 14 |
# File 'lib/configuration.rb', line 12 def project_id @project_id end |
#result_formatter_options ⇒ Object
Returns the value of attribute result_formatter_options.
12 13 14 |
# File 'lib/configuration.rb', line 12 def @result_formatter_options end |
#test_run_id ⇒ Object
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 |
#username ⇒ Object
Returns the value of attribute username.
12 13 14 |
# File 'lib/configuration.rb', line 12 def username @username end |
Instance Method Details
#to_hash ⇒ Object
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 |