Class: ONCCertificationG10TestKit::Tasks::TestProcedure

Inherits:
Object
  • Object
show all
Defined in:
lib/onc_certification_g10_test_kit/tasks/test_procedure.rb

Defined Under Namespace

Classes: Section, Step

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sectionsObject

procedure -> section -> steps



7
8
9
# File 'lib/onc_certification_g10_test_kit/tasks/test_procedure.rb', line 7

def sections
  @sections
end