Class: Schemurai::ValidationError

Inherits:
Data
  • Object
show all
Defined in:
lib/schemurai.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#instance_pathObject (readonly)

Returns the value of attribute instance_path

Returns:

  • (Object)

    the current value of instance_path



13
14
15
# File 'lib/schemurai.rb', line 13

def instance_path
  @instance_path
end

#keywordObject (readonly)

Returns the value of attribute keyword

Returns:

  • (Object)

    the current value of keyword



13
14
15
# File 'lib/schemurai.rb', line 13

def keyword
  @keyword
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



13
14
15
# File 'lib/schemurai.rb', line 13

def message
  @message
end

#schema_pathObject (readonly)

Returns the value of attribute schema_path

Returns:

  • (Object)

    the current value of schema_path



13
14
15
# File 'lib/schemurai.rb', line 13

def schema_path
  @schema_path
end

Instance Method Details

#to_hObject



14
15
16
# File 'lib/schemurai.rb', line 14

def to_h
  {keyword: keyword, instance_path: instance_path, schema_path: schema_path, message: message}
end