class Esearch::Presenter::Hit

Presenter for an hit

Public Instance Methods

fields() click to toggle source

Return fields if present

@return [Hash]

if present

@return [nil]

otherwise

@api private

# File lib/esearch/presenter/hit.rb, line 33
def fields
  raw['fields']
end
source() click to toggle source

Return source field if present

@return [Hash]

if present

@return [nil]

otherwise

@api private

# File lib/esearch/presenter/hit.rb, line 19
def source
  raw['_source']
end