Class: Amp::Repositories::Verification::VerificationResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/amp/repository/verification.rb

Overview

Simple struct that handles the results of a verification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ VerificationResult

Returns a new instance of VerificationResult.



419
420
421
422
423
424
425
426
# File 'lib/amp/repository/verification.rb', line 419

def initialize(*args)
  super(*args)
  @warnings   = 0
  @errors     = 0
  @revisions  = 0
  @files      = 0
  @changesets = 0
end

Instance Attribute Details

#changesetsObject

Returns the value of attribute changesets

Returns:

  • (Object)

    the current value of changesets



418
419
420
# File 'lib/amp/repository/verification.rb', line 418

def changesets
  @changesets
end

#errorsObject

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



418
419
420
# File 'lib/amp/repository/verification.rb', line 418

def errors
  @errors
end

#filesObject

Returns the value of attribute files

Returns:

  • (Object)

    the current value of files



418
419
420
# File 'lib/amp/repository/verification.rb', line 418

def files
  @files
end

#revisionsObject

Returns the value of attribute revisions

Returns:

  • (Object)

    the current value of revisions



418
419
420
# File 'lib/amp/repository/verification.rb', line 418

def revisions
  @revisions
end

#warningsObject

Returns the value of attribute warnings

Returns:

  • (Object)

    the current value of warnings



418
419
420
# File 'lib/amp/repository/verification.rb', line 418

def warnings
  @warnings
end