Sha256: da37c3a7e30f9ee3fb3c49bf9933479a9937c4d25a4f7ebdbf7496fa07f67d18
Contents?: true
Size: 589 Bytes
Versions: 18
Compression:
Stored size: 589 Bytes
Contents
module WCC module Media class Client < ::WCC::API::RestClient class Response < AbstractResponse def skip body.dig('pagination', 'offset') end def count body.dig('pagination', 'total') end def collection_response? body.key?('pagination') end def page_items body['messages'] || body['series'] || body['speakers'] || body['tags'] end def next_page_query { offset: page_items.length + skip, } end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems