Class: Reeve::Testing::Checks::Base::Attempt

Inherits:
Struct
  • Object
show all
Defined in:
lib/reeve/testing/checks/base.rb

Overview

One attempt to call the tool: what came back, or what stopped it, plus the ledger rows the attempt produced.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#denialObject

Returns the value of attribute denial

Returns:

  • (Object)

    the current value of denial



15
16
17
# File 'lib/reeve/testing/checks/base.rb', line 15

def denial
  @denial
end

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



15
16
17
# File 'lib/reeve/testing/checks/base.rb', line 15

def error
  @error
end

#principalObject

Returns the value of attribute principal

Returns:

  • (Object)

    the current value of principal



15
16
17
# File 'lib/reeve/testing/checks/base.rb', line 15

def principal
  @principal
end

#recordsObject

Returns the value of attribute records

Returns:

  • (Object)

    the current value of records



15
16
17
# File 'lib/reeve/testing/checks/base.rb', line 15

def records
  @records
end

#rowsObject

Returns the value of attribute rows

Returns:

  • (Object)

    the current value of rows



15
16
17
# File 'lib/reeve/testing/checks/base.rb', line 15

def rows
  @rows
end

Instance Method Details

#denied?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/reeve/testing/checks/base.rb', line 17

def denied?
  !denial.nil?
end

#entryObject



25
26
27
# File 'lib/reeve/testing/checks/base.rb', line 25

def entry
  rows.last
end

#failed?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/reeve/testing/checks/base.rb', line 21

def failed?
  !error.nil?
end