Class: FastJSON::Schema::Error
- Inherits:
-
Object
- Object
- FastJSON::Schema::Error
- Defined in:
- lib/fast_json/schema/error.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#data_path ⇒ Object
readonly
Returns the value of attribute data_path.
-
#schema_path ⇒ Object
readonly
Returns the value of attribute schema_path.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(schema_path, data, data_path, type) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(schema_path, data, data_path, type) ⇒ Error
Returns a new instance of Error.
6 7 8 9 10 11 |
# File 'lib/fast_json/schema/error.rb', line 6 def initialize(schema_path, data, data_path, type) @schema_path = schema_path @data = data @data_path = data_path @type = type end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
13 14 15 |
# File 'lib/fast_json/schema/error.rb', line 13 def data @data end |
#data_path ⇒ Object (readonly)
Returns the value of attribute data_path.
13 14 15 |
# File 'lib/fast_json/schema/error.rb', line 13 def data_path @data_path end |
#schema_path ⇒ Object (readonly)
Returns the value of attribute schema_path.
13 14 15 |
# File 'lib/fast_json/schema/error.rb', line 13 def schema_path @schema_path end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
13 14 15 |
# File 'lib/fast_json/schema/error.rb', line 13 def type @type end |