Class: Couchbase::Cluster::SearchQuery::Coordinate

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

Constructor Details

#initialize(longitude, latitude) ⇒ Coordinate

Returns a new instance of Coordinate.



607
608
609
610
# File 'lib/couchbase/search_options.rb', line 607

def initialize(longitude, latitude)
  @longitude = longitude
  @latitude = latitude
end

Instance Attribute Details

#latitudeFloat

Returns:

  • (Float)


605
606
607
# File 'lib/couchbase/search_options.rb', line 605

def latitude
  @latitude
end

#longitudeFloat

Returns:

  • (Float)


602
603
604
# File 'lib/couchbase/search_options.rb', line 602

def longitude
  @longitude
end