Class: EFIValidate::EFIValidationError
- Inherits:
-
Object
- Object
- EFIValidate::EFIValidationError
- Defined in:
- lib/efivalidate/efi_validation_error.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
-
#row ⇒ Object
readonly
Returns the value of attribute row.
Instance Method Summary collapse
-
#initialize(row, data, hash) ⇒ EFIValidationError
constructor
A new instance of EFIValidationError.
- #to_s ⇒ Object
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'lib/efivalidate/efi_validation_error.rb', line 3 def data @data end |
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
3 4 5 |
# File 'lib/efivalidate/efi_validation_error.rb', line 3 def hash @hash end |
#row ⇒ Object (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_s ⇒ Object
11 12 13 |
# File 'lib/efivalidate/efi_validation_error.rb', line 11 def to_s "Expected #{row} to be #{@hash}" end |