Module: Clumpy::Extensions::SunspotHit
- Defined in:
- lib/clumpy/extensions/sunspot_hit.rb
Instance Method Summary collapse
Instance Method Details
#as_json ⇒ Object
12 13 14 15 16 17 |
# File 'lib/clumpy/extensions/sunspot_hit.rb', line 12 def as_json(*) { id: primary_key, type: class_name } end |
#latitude ⇒ Object
4 5 6 |
# File 'lib/clumpy/extensions/sunspot_hit.rb', line 4 def latitude stored(:lat) end |
#longitude ⇒ Object
8 9 10 |
# File 'lib/clumpy/extensions/sunspot_hit.rb', line 8 def longitude stored(:lng) end |