class DatastaxRails::GroupedCollection
GroupedCollection
extends Hash to add some additional metadata. The hash keys will be the values for the thing that was grouped on. The hash entries point to instances of DatastaxRails::Collection
.
Attributes
total_entries[RW]
@!attribute [r] total_entries
@return [Fixnum] the total number of entries *in the largest group*. This is to allow will_paginate to work.
@!attribute [r] total_groups
@return [Fixnum] the total number of groups if the groups were paginated (not supported yet)
@!attribute [r] total_for_all
@return [Fixnum] the total number of entries across all groups that match this search
total_for_all[RW]
@!attribute [r] total_entries
@return [Fixnum] the total number of entries *in the largest group*. This is to allow will_paginate to work.
@!attribute [r] total_groups
@return [Fixnum] the total number of groups if the groups were paginated (not supported yet)
@!attribute [r] total_for_all
@return [Fixnum] the total number of entries across all groups that match this search
total_groups[RW]
@!attribute [r] total_entries
@return [Fixnum] the total number of entries *in the largest group*. This is to allow will_paginate to work.
@!attribute [r] total_groups
@return [Fixnum] the total number of groups if the groups were paginated (not supported yet)
@!attribute [r] total_for_all
@return [Fixnum] the total number of entries across all groups that match this search
Public Instance Methods
inspect()
click to toggle source
# File lib/datastax_rails/grouped_collection.rb, line 13 def inspect "<DatastaxRails::GroupedCollection##{object_id} contents: #{super} matching_records #{total_for_all}>" end