Class: KnapsackPro::Batch

Inherits:
Object
  • Object
show all
Defined in:
lib/knapsack_pro/batch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(test_file_paths) ⇒ Batch

Returns a new instance of Batch.



7
8
9
10
# File 'lib/knapsack_pro/batch.rb', line 7

def initialize(test_file_paths)
  @test_file_paths = test_file_paths
  @status = :not_executed
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



5
6
7
# File 'lib/knapsack_pro/batch.rb', line 5

def status
  @status
end

#test_file_pathsObject (readonly)

Returns the value of attribute test_file_paths.



5
6
7
# File 'lib/knapsack_pro/batch.rb', line 5

def test_file_paths
  @test_file_paths
end

Instance Method Details

#_failedObject



16
17
18
# File 'lib/knapsack_pro/batch.rb', line 16

def _failed
  @status = :failed
end

#_passedObject



12
13
14
# File 'lib/knapsack_pro/batch.rb', line 12

def _passed
  @status = :passed
end