Class: ThinkingSphinx::Panes::DistancePane

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

Instance Method Summary (collapse)

Constructor Details

- (DistancePane) initialize(context, object, raw)

Returns a new instance of 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

- (Object) distance



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

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

- (Object) geodist



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

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