Class: Herb::Engine::ValidationErrors::ValidationError

Inherits:
Object
  • Object
show all
Defined in:
lib/herb/engine/validation_errors.rb,
sig/herb/engine/validation_errors.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, location, message) ⇒ ValidationError

Returns a new instance of ValidationError.

Parameters:

  • type (Object)
  • location (Object)
  • message (Object)


46
47
48
49
50
# File 'lib/herb/engine/validation_errors.rb', line 46

def initialize(type, location, message)
  @type = type
  @location = location
  @message = message
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.

Returns:

  • (Object)


44
45
46
# File 'lib/herb/engine/validation_errors.rb', line 44

def location
  @location
end

#messageObject (readonly)

Returns the value of attribute message.

Returns:

  • (Object)


44
45
46
# File 'lib/herb/engine/validation_errors.rb', line 44

def message
  @message
end

#typeObject (readonly)

Returns the value of attribute type.

Returns:

  • (Object)


44
45
46
# File 'lib/herb/engine/validation_errors.rb', line 44

def type
  @type
end