Sha256: 1b3b32614a5c2c4faf6246bb7d5fc5589b3d1212a0ba9c31d8fad34fbb6c32e6
Contents?: true
Size: 430 Bytes
Versions: 10
Compression:
Stored size: 430 Bytes
Contents
module PolyglotIos module Resource class Base < JsonApiClient::Resource extend PolyglotIos::Helper::Depaginate def self.api_url(url) self.site = url self end def self.token(token) self.connection_options = { headers: { 'X-Auth-Token' => token } } self end def self.depaginate(opts = {}) depaginate_query(where(opts)) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems