Class: Harkness::Base::DataContainer

Inherits:
Shale::Mapper
  • Object
show all
Defined in:
lib/harkness/models/base/data_container.rb

Overview

Container class that holds pagination information.

Instance Attribute Summary collapse

Instance Attribute Details

#countInteger (readonly)

Returns the total number of results returned by this call.

Returns:

  • (Integer)

    the total number of results returned by this call.



18
# File 'lib/harkness/models/base/data_container.rb', line 18

attribute :count, Shale::Type::Integer

#limitInteger (readonly)

Returns the requested result limit.

Returns:

  • (Integer)

    the requested result limit.



12
# File 'lib/harkness/models/base/data_container.rb', line 12

attribute :limit, Shale::Type::Integer

#offsetInteger (readonly)

Returns the requested offset (number of skipped results) of the call.

Returns:

  • (Integer)

    the requested offset (number of skipped results) of the call.



9
# File 'lib/harkness/models/base/data_container.rb', line 9

attribute :offset, Shale::Type::Integer

#totalInteger (readonly)

Returns the total number of resources available given the current filter set.

Returns:

  • (Integer)

    the total number of resources available given the current filter set.



15
# File 'lib/harkness/models/base/data_container.rb', line 15

attribute :total, Shale::Type::Integer