Class: CabezaDeTermo::JsonSpec::JsonValidatorError
- Inherits:
-
Object
- Object
- CabezaDeTermo::JsonSpec::JsonValidatorError
- Defined in:
- lib/cabeza-de-termo/json-spec/walkers/validator/json-validator-error.rb
Instance Method Summary collapse
- #accessors_chain ⇒ Object
-
#initialize(accessors_chain, message) ⇒ JsonValidatorError
constructor
A new instance of JsonValidatorError.
-
#message ⇒ Object
Accessing.
-
#to_hash ⇒ Object
Converting.
Constructor Details
#initialize(accessors_chain, message) ⇒ JsonValidatorError
Returns a new instance of JsonValidatorError.
4 5 6 7 |
# File 'lib/cabeza-de-termo/json-spec/walkers/validator/json-validator-error.rb', line 4 def initialize(accessors_chain, ) @accessors_chain = accessors_chain @message = end |
Instance Method Details
#accessors_chain ⇒ Object
15 16 17 |
# File 'lib/cabeza-de-termo/json-spec/walkers/validator/json-validator-error.rb', line 15 def accessors_chain() @accessors_chain end |
#message ⇒ Object
Accessing
11 12 13 |
# File 'lib/cabeza-de-termo/json-spec/walkers/validator/json-validator-error.rb', line 11 def () @message end |
#to_hash ⇒ Object
Converting
21 22 23 24 25 26 |
# File 'lib/cabeza-de-termo/json-spec/walkers/validator/json-validator-error.rb', line 21 def to_hash() { access_chain: accessors_chain().to_s, message: } end |