Class: EFIValidate::EFIValidationError

Inherits:
Object
  • Object
show all
Defined in:
lib/efivalidate/efi_validation_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row, data, hash) ⇒ EFIValidationError

Returns a new instance of EFIValidationError.



5
6
7
8
9
# File 'lib/efivalidate/efi_validation_error.rb', line 5

def initialize(row, data, hash)
  @row = row
  @data = data
  @hash = hash
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



3
4
5
# File 'lib/efivalidate/efi_validation_error.rb', line 3

def data
  @data
end

#hashObject (readonly)

Returns the value of attribute hash.



3
4
5
# File 'lib/efivalidate/efi_validation_error.rb', line 3

def hash
  @hash
end

#rowObject (readonly)

Returns the value of attribute row.



3
4
5
# File 'lib/efivalidate/efi_validation_error.rb', line 3

def row
  @row
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/efivalidate/efi_validation_error.rb', line 11

def to_s
  "Expected #{row} to be #{@hash}"
end