Class: FastJSON::Schema::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/fast_json/schema/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



13
14
15
# File 'lib/fast_json/schema/error.rb', line 13

def data
  @data
end

#data_pathObject (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_pathObject (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

#typeObject (readonly)

Returns the value of attribute type.



13
14
15
# File 'lib/fast_json/schema/error.rb', line 13

def type
  @type
end