Sha256: f1c55f0e2d200a1087a1309107cc38bb29103f2c774c44b052117bce82f9ee87

Contents?: true

Size: 413 Bytes

Versions: 3

Compression:

Stored size: 413 Bytes

Contents

module PolyglotIos
  module Resource
    class Base < JsonApiClient::Resource
      extend PolyglotIos::Helper::Depaginate

      self.site = 'https://polyglot.infinum.co/api/v2/'

      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

3 entries across 3 versions & 1 rubygems

Version Path
ios_polyglot_cli-2.1.1 lib/ios_polyglot_cli/api/base.rb
ios_polyglot_cli-2.1.0 lib/ios_polyglot_cli/api/base.rb
ios_polyglot_cli-2.0.1 lib/ios_polyglot_cli/api/base.rb