Class: Ace::Demo::Models::VerificationResult

Inherits:
Object
  • Object
show all
Defined in:
lib/ace/demo/models/verification_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success:, status:, commands_found:, commands_missing:, details: nil, classification: nil, summary: nil, retryable: false, report_path: nil) ⇒ VerificationResult

Returns a new instance of VerificationResult.



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/ace/demo/models/verification_result.rb', line 10

def initialize(success:, status:, commands_found:, commands_missing:, details: nil,
  classification: nil, summary: nil, retryable: false, report_path: nil)
  @success = success
  @status = status
  @commands_found = commands_found
  @commands_missing = commands_missing
  @details = details
  @classification = classification
  @summary = summary
  @retryable = retryable
  @report_path = report_path
end

Instance Attribute Details

#classificationObject (readonly)

Returns the value of attribute classification.



7
8
9
# File 'lib/ace/demo/models/verification_result.rb', line 7

def classification
  @classification
end

#commands_foundObject (readonly)

Returns the value of attribute commands_found.



7
8
9
# File 'lib/ace/demo/models/verification_result.rb', line 7

def commands_found
  @commands_found
end

#commands_missingObject (readonly)

Returns the value of attribute commands_missing.



7
8
9
# File 'lib/ace/demo/models/verification_result.rb', line 7

def commands_missing
  @commands_missing
end

#detailsObject (readonly)

Returns the value of attribute details.



7
8
9
# File 'lib/ace/demo/models/verification_result.rb', line 7

def details
  @details
end

#report_pathObject

Returns the value of attribute report_path.



8
9
10
# File 'lib/ace/demo/models/verification_result.rb', line 8

def report_path
  @report_path
end

#retryableObject (readonly)

Returns the value of attribute retryable.



7
8
9
# File 'lib/ace/demo/models/verification_result.rb', line 7

def retryable
  @retryable
end

#statusObject (readonly)

Returns the value of attribute status.



7
8
9
# File 'lib/ace/demo/models/verification_result.rb', line 7

def status
  @status
end

#summaryObject (readonly)

Returns the value of attribute summary.



7
8
9
# File 'lib/ace/demo/models/verification_result.rb', line 7

def summary
  @summary
end

Instance Method Details

#retryable?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/ace/demo/models/verification_result.rb', line 27

def retryable?
  @retryable
end

#success?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/ace/demo/models/verification_result.rb', line 23

def success?
  @success
end