Class: ONCCertificationG10TestKit::Tasks::TestProcedure
- Inherits:
-
Object
- Object
- ONCCertificationG10TestKit::Tasks::TestProcedure
- Defined in:
- lib/onc_certification_g10_test_kit/tasks/test_procedure.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#sections ⇒ Object
procedure -> section -> steps.
Instance Method Summary collapse
-
#initialize(data) ⇒ TestProcedure
constructor
A new instance of TestProcedure.
Constructor Details
#initialize(data) ⇒ TestProcedure
Returns a new instance of TestProcedure.
9 10 11 |
# File 'lib/onc_certification_g10_test_kit/tasks/test_procedure.rb', line 9 def initialize(data) @sections = data[:procedure].map { |section| Section.new(section) } end |
Instance Attribute Details
#sections ⇒ Object
procedure -> section -> steps
7 8 9 |
# File 'lib/onc_certification_g10_test_kit/tasks/test_procedure.rb', line 7 def sections @sections end |