Class: NxtSchema::Node::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/nxt_schema/node/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, value, message) ⇒ Error

Returns a new instance of Error.



4
5
6
7
8
# File 'lib/nxt_schema/node/error.rb', line 4

def initialize(path, value, message)
  @path = path
  @value = value
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



10
11
12
# File 'lib/nxt_schema/node/error.rb', line 10

def message
  @message
end

#pathObject (readonly)

Returns the value of attribute path.



10
11
12
# File 'lib/nxt_schema/node/error.rb', line 10

def path
  @path
end

#valueObject (readonly)

Returns the value of attribute value.



10
11
12
# File 'lib/nxt_schema/node/error.rb', line 10

def value
  @value
end