Module: Neo4j::ActiveNode::Spatial::ClassMethods
- Defined in:
- lib/neo4j/active_node/spatial.rb
Instance Attribute Summary collapse
-
#spatial_index_name ⇒ Object
readonly
Returns the value of attribute spatial_index_name.
Instance Method Summary collapse
Instance Attribute Details
#spatial_index_name ⇒ Object (readonly)
Returns the value of attribute spatial_index_name.
14 15 16 |
# File 'lib/neo4j/active_node/spatial.rb', line 14 def spatial_index_name @spatial_index_name end |
Instance Method Details
#spatial_index(index_name = nil) ⇒ Object
15 16 17 18 19 |
# File 'lib/neo4j/active_node/spatial.rb', line 15 def spatial_index(index_name = nil) return spatial_index_name unless index_name # create_index_callback(index_name) @spatial_index_name = index_name end |