Class: Torikago::Checker::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/torikago/checker.rb,
sig/torikago.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • errors: (Array[String]) (defaults to: Array.new)
  • scanned_file_count: (Integer) (defaults to: 0)
  • gateway_call_count: (Integer) (defaults to: 0)
  • dynamic_gateway_call_count: (Integer) (defaults to: 0)
  • manifest_count: (Integer) (defaults to: 0)


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_countInteger

Returns the value of attribute dynamic_gateway_call_count.

Returns:

  • (Integer)


11
12
13
# File 'lib/torikago/checker.rb', line 11

def dynamic_gateway_call_count
  @dynamic_gateway_call_count
end

#errorsArray[String]

Returns the value of attribute errors.

Returns:

  • (Array[String])


11
12
13
# File 'lib/torikago/checker.rb', line 11

def errors
  @errors
end

#gateway_call_countInteger

Returns the value of attribute gateway_call_count.

Returns:

  • (Integer)


11
12
13
# File 'lib/torikago/checker.rb', line 11

def gateway_call_count
  @gateway_call_count
end

#manifest_countInteger

Returns the value of attribute manifest_count.

Returns:

  • (Integer)


11
12
13
# File 'lib/torikago/checker.rb', line 11

def manifest_count
  @manifest_count
end

#scanned_file_countInteger

Returns the value of attribute scanned_file_count.

Returns:

  • (Integer)


11
12
13
# File 'lib/torikago/checker.rb', line 11

def scanned_file_count
  @scanned_file_count
end

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/torikago/checker.rb', line 21

def ok?
  errors.empty?
end