Class: Arel::Attributes::Attribute
- Inherits:
-
Object
- Object
- Arel::Attributes::Attribute
- Defined in:
- lib/arel/visitors/postgis.rb
Instance Method Summary collapse
- #distance_operator(other) ⇒ Object (also: #<->)
- #st_area ⇒ Object
- #st_buffer(distance) ⇒ Object
- #st_contains(other) ⇒ Object
- #st_distance(other) ⇒ Object
- #st_dwithin(other, distance) ⇒ Object
- #st_intersects(other) ⇒ Object
- #st_length ⇒ Object
- #st_transform(srid) ⇒ Object
- #st_within(other) ⇒ Object
Instance Method Details
#distance_operator(other) ⇒ Object Also known as: <->
133 134 135 |
# File 'lib/arel/visitors/postgis.rb', line 133 def distance_operator(other) Arel::Nodes::SpatialDistanceOperator.new(self, other) end |
#st_area ⇒ Object
129 130 131 |
# File 'lib/arel/visitors/postgis.rb', line 129 def st_area Arel::Nodes::SpatialArea.new(self) end |
#st_buffer(distance) ⇒ Object
121 122 123 |
# File 'lib/arel/visitors/postgis.rb', line 121 def st_buffer(distance) Arel::Nodes::SpatialBuffer.new(self, distance) end |
#st_contains(other) ⇒ Object
105 106 107 |
# File 'lib/arel/visitors/postgis.rb', line 105 def st_contains(other) Arel::Nodes::SpatialContains.new(self, other) end |
#st_distance(other) ⇒ Object
97 98 99 |
# File 'lib/arel/visitors/postgis.rb', line 97 def st_distance(other) Arel::Nodes::SpatialDistance.new(self, other) end |
#st_dwithin(other, distance) ⇒ Object
117 118 119 |
# File 'lib/arel/visitors/postgis.rb', line 117 def st_dwithin(other, distance) Arel::Nodes::SpatialDWithin.new(self, other, distance) end |
#st_intersects(other) ⇒ Object
113 114 115 |
# File 'lib/arel/visitors/postgis.rb', line 113 def st_intersects(other) Arel::Nodes::SpatialIntersects.new(self, other) end |
#st_length ⇒ Object
101 102 103 |
# File 'lib/arel/visitors/postgis.rb', line 101 def st_length Arel::Nodes::SpatialLength.new(self) end |
#st_transform(srid) ⇒ Object
125 126 127 |
# File 'lib/arel/visitors/postgis.rb', line 125 def st_transform(srid) Arel::Nodes::SpatialTransform.new(self, srid) end |
#st_within(other) ⇒ Object
109 110 111 |
# File 'lib/arel/visitors/postgis.rb', line 109 def st_within(other) Arel::Nodes::SpatialWithin.new(self, other) end |