Sha256: df8b45a610170e8a1f37848595d5de33d39bb18dee7884e35e6f4d639457fade
Contents?: true
Size: 509 Bytes
Versions: 6
Compression:
Stored size: 509 Bytes
Contents
class FilteredList attr_reader :data, :facets, :paging def initialize(paginated_list) self.data = paginated_list[:list] self.paging = paginated_list end def data=(data) @data = [] @data = data if data.present? end def paging=(paginated_list) @paging = { total_count: paginated_list[:list].total_count, current_page: paginated_list[:list].current_page, total_pages: paginated_list[:list].total_pages } end end
Version data entries
6 entries across 6 versions & 1 rubygems