Class: Neo4j::Driver::Summary::Notification::Position

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#columnObject (readonly)

Returns the value of attribute column.



35
36
37
# File 'lib/neo4j/driver/summary/notification.rb', line 35

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



35
36
37
# File 'lib/neo4j/driver/summary/notification.rb', line 35

def line
  @line
end

#offsetObject (readonly)

Returns the value of attribute offset.



35
36
37
# File 'lib/neo4j/driver/summary/notification.rb', line 35

def offset
  @offset
end