Class: Esearch::Presenter::Aspect::Range

Inherits:
Esearch::Presenter::Aspect show all
Defined in:
lib/esearch/presenter/aspect/range.rb

Overview

Range aspect

Instance Method Summary collapse

Methods inherited from Esearch::Presenter::Aspect

#count

Instance Method Details

#fromFloat?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return range start

Returns:

  • (Float)

    if present

  • (nil)

    otherwise



20
21
22
# File 'lib/esearch/presenter/aspect/range.rb', line 20

def from
  raw['from']
end

#meanFloat

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return mean

Returns:

  • (Float)


60
# File 'lib/esearch/presenter/aspect/range.rb', line 60

expose_primitive(:mean)

#toFloat?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return range end

Returns:

  • (Float)

    if present

  • (nil)

    otherwise



34
35
36
# File 'lib/esearch/presenter/aspect/range.rb', line 34

def to
  raw['to']
end

#totalFloat

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return total

Returns:

  • (Float)


52
# File 'lib/esearch/presenter/aspect/range.rb', line 52

expose_primitive(:total)

#total_countFixnum

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return total count

Returns:

  • (Fixnum)


44
# File 'lib/esearch/presenter/aspect/range.rb', line 44

expose_primitive(:total_count)