Class: Neo4j::Driver::Summary::Notification::Position
- Inherits:
-
Object
- Object
- Neo4j::Driver::Summary::Notification::Position
- Defined in:
- lib/neo4j/driver/summary/notification.rb
Overview
Inner type — character offset / line / column where the notification applies in the query text.
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
Instance Method Summary collapse
-
#initialize(position_data) ⇒ Position
constructor
A new instance of Position.
Constructor Details
#initialize(position_data) ⇒ Position
Returns a new instance of Position.
37 38 39 40 41 |
# File 'lib/neo4j/driver/summary/notification.rb', line 37 def initialize(position_data) @offset = position_data[:offset] @line = position_data[:line] @column = position_data[:column] end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
35 36 37 |
# File 'lib/neo4j/driver/summary/notification.rb', line 35 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
35 36 37 |
# File 'lib/neo4j/driver/summary/notification.rb', line 35 def line @line end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
35 36 37 |
# File 'lib/neo4j/driver/summary/notification.rb', line 35 def offset @offset end |