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



18
19
20
# File 'lib/esearch/presenter/aspect/range.rb', line 18

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)


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

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



32
33
34
# File 'lib/esearch/presenter/aspect/range.rb', line 32

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)


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

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)


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

expose_primitive(:total_count)