Class: SectionTestClass
- Inherits:
-
Object
- Object
- SectionTestClass
- Defined in:
- lib/au_ps_inferno/utils/section_test_class.rb
Overview
A class to keep helper methods for section tests
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #humanized_name ⇒ Object
-
#initialize(section_config, _bundle_resource) ⇒ SectionTestClass
constructor
A new instance of SectionTestClass.
Constructor Details
#initialize(section_config, _bundle_resource) ⇒ SectionTestClass
Returns a new instance of SectionTestClass.
9 10 11 12 13 |
# File 'lib/au_ps_inferno/utils/section_test_class.rb', line 9 def initialize(section_config, _bundle_resource) @section_config = section_config @code = section_config['code'] @name = section_config['name'] end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
7 8 9 |
# File 'lib/au_ps_inferno/utils/section_test_class.rb', line 7 def code @code end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/au_ps_inferno/utils/section_test_class.rb', line 7 def name @name end |
Instance Method Details
#humanized_name ⇒ Object
15 16 17 |
# File 'lib/au_ps_inferno/utils/section_test_class.rb', line 15 def humanized_name "#{@name} (#{@code})" end |