Class: ThinkingSphinx::Panes::DistancePane

Inherits:
Object
  • Object
show all
Defined in:
lib/thinking_sphinx/panes/distance_pane.rb

Instance Method Summary collapse

Constructor Details

#initialize(context, object, raw) ⇒ DistancePane



2
3
4
# File 'lib/thinking_sphinx/panes/distance_pane.rb', line 2

def initialize(context, object, raw)
  @raw = raw
end

Instance Method Details

#distanceObject



6
7
8
# File 'lib/thinking_sphinx/panes/distance_pane.rb', line 6

def distance
  @raw['geodist'].to_f
end

#geodistObject



10
11
12
# File 'lib/thinking_sphinx/panes/distance_pane.rb', line 10

def geodist
  @raw['geodist'].to_f
end