Class: Couchbase::SearchQuery::Coordinate
- Inherits:
-
Object
- Object
- Couchbase::SearchQuery::Coordinate
- Defined in:
- lib/couchbase/search_options.rb
Overview
A coordinate is a tuple of a latitude and a longitude.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(longitude, latitude) ⇒ Coordinate
constructor
A new instance of Coordinate.
Constructor Details
#initialize(longitude, latitude) ⇒ Coordinate
Returns a new instance of Coordinate.
678 679 680 681 |
# File 'lib/couchbase/search_options.rb', line 678 def initialize(longitude, latitude) @longitude = longitude @latitude = latitude end |
Instance Attribute Details
#latitude ⇒ Float
676 677 678 |
# File 'lib/couchbase/search_options.rb', line 676 def latitude @latitude end |
#longitude ⇒ Float
673 674 675 |
# File 'lib/couchbase/search_options.rb', line 673 def longitude @longitude end |