Class: Couchbase::SearchQuery::Coordinate

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/search_options.rb,
/code/couchbase-ruby-client/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.



678
679
680
681
# File 'lib/couchbase/search_options.rb', line 678

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

Instance Attribute Details

#latitudeFloat

Returns:

  • (Float)


676
677
678
# File 'lib/couchbase/search_options.rb', line 676

def latitude
  @latitude
end

#longitudeFloat

Returns:

  • (Float)


673
674
675
# File 'lib/couchbase/search_options.rb', line 673

def longitude
  @longitude
end