class Pyper::Pipes::Cassandra::PaginationEncoding
Given a :paging_state in the status field, encodes it. This is the reverse transformation of the PaginationDecoding
pipe.
Public Instance Methods
pipe(items, status)
click to toggle source
@param items [Enumerable<Hash>] @param status [Hash] The mutable status field @return [Enumerable<Hash>] The unchanged list of items
# File lib/pyper/pipes/cassandra/pagination_encoding.rb, line 11 def pipe(items, status) page_state = status[:paging_state] status[:paging_state] = Base64.urlsafe_encode64(page_state) if page_state items end