Class: Torikago::Checker::Result
- Inherits:
-
Object
- Object
- Torikago::Checker::Result
- Defined in:
- lib/torikago/checker.rb,
sig/torikago.rbs
Instance Attribute Summary collapse
-
#dynamic_gateway_call_count ⇒ Integer
Returns the value of attribute dynamic_gateway_call_count.
-
#errors ⇒ Array[String]
Returns the value of attribute errors.
-
#gateway_call_count ⇒ Integer
Returns the value of attribute gateway_call_count.
-
#manifest_count ⇒ Integer
Returns the value of attribute manifest_count.
-
#scanned_file_count ⇒ Integer
Returns the value of attribute scanned_file_count.
Instance Method Summary collapse
-
#initialize(errors: Array.new, scanned_file_count: 0, gateway_call_count: 0, dynamic_gateway_call_count: 0, manifest_count: 0) ⇒ Result
constructor
A new instance of Result.
- #ok? ⇒ Boolean
Constructor Details
#initialize(errors: Array.new, scanned_file_count: 0, gateway_call_count: 0, dynamic_gateway_call_count: 0, manifest_count: 0) ⇒ Result
Returns a new instance of Result.
13 14 15 16 17 18 19 |
# File 'lib/torikago/checker.rb', line 13 def initialize(errors: Array.new, scanned_file_count: 0, gateway_call_count: 0, dynamic_gateway_call_count: 0, manifest_count: 0) @errors = errors @scanned_file_count = scanned_file_count @gateway_call_count = gateway_call_count @dynamic_gateway_call_count = dynamic_gateway_call_count @manifest_count = manifest_count end |
Instance Attribute Details
#dynamic_gateway_call_count ⇒ Integer
Returns the value of attribute dynamic_gateway_call_count.
11 12 13 |
# File 'lib/torikago/checker.rb', line 11 def dynamic_gateway_call_count @dynamic_gateway_call_count end |
#errors ⇒ Array[String]
Returns the value of attribute errors.
11 12 13 |
# File 'lib/torikago/checker.rb', line 11 def errors @errors end |
#gateway_call_count ⇒ Integer
Returns the value of attribute gateway_call_count.
11 12 13 |
# File 'lib/torikago/checker.rb', line 11 def gateway_call_count @gateway_call_count end |
#manifest_count ⇒ Integer
Returns the value of attribute manifest_count.
11 12 13 |
# File 'lib/torikago/checker.rb', line 11 def manifest_count @manifest_count end |
#scanned_file_count ⇒ Integer
Returns the value of attribute scanned_file_count.
11 12 13 |
# File 'lib/torikago/checker.rb', line 11 def scanned_file_count @scanned_file_count end |
Instance Method Details
#ok? ⇒ Boolean
21 22 23 |
# File 'lib/torikago/checker.rb', line 21 def ok? errors.empty? end |