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

Version Path
ios_polyglot_cli-2.8.0 lib/ios_polyglot_cli/api/base.rb
ios_polyglot_cli-2.7.3 lib/ios_polyglot_cli/api/base.rb
ios_polyglot_cli-2.7.2 lib/ios_polyglot_cli/api/base.rb
ios_polyglot_cli-2.7.1 lib/ios_polyglot_cli/api/base.rb
ios_polyglot_cli-2.7.0 lib/ios_polyglot_cli/api/base.rb
ios_polyglot_cli-2.6.3 lib/ios_polyglot_cli/api/base.rb
ios_polyglot_cli-2.6.2 lib/ios_polyglot_cli/api/base.rb
ios_polyglot_cli-2.6.1 lib/ios_polyglot_cli/api/base.rb
ios_polyglot_cli-2.6.0 lib/ios_polyglot_cli/api/base.rb
ios_polyglot_cli-2.5.1 lib/ios_polyglot_cli/api/base.rb