Sha256: b1e3cd71942182b65d9e78b24928069ddc02be153ab16c0521342a4ccc18de84

Contents?: true

Size: 416 Bytes

Versions: 5

Compression:

Stored size: 416 Bytes

Contents

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

      self.site = 'https://infinum.polyglothq.com/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

5 entries across 5 versions & 1 rubygems

Version Path
ios_polyglot_cli-2.4.0 lib/ios_polyglot_cli/api/base.rb
ios_polyglot_cli-2.3.0 lib/ios_polyglot_cli/api/base.rb
ios_polyglot_cli-2.2.2 lib/ios_polyglot_cli/api/base.rb
ios_polyglot_cli-2.2.1 lib/ios_polyglot_cli/api/base.rb
ios_polyglot_cli-2.2.0 lib/ios_polyglot_cli/api/base.rb