Sha256: b297bfa6fff8b67b032f7b9719e6573a47d9408afe9c9c9a7eaf4e8037c49fb2

Contents?: true

Size: 271 Bytes

Versions: 6796

Compression:

Stored size: 271 Bytes

Contents

module Typhoeus
  class Response
    module Cacheable

      # Set the cache status, if we got response from cache
      # it will have cached? == true
      attr_writer :cached

      def cached?
        defined?(@cached) ? !!@cached : false
      end
    end
  end
end

Version data entries

6,796 entries across 6,793 versions & 26 rubygems

Version Path
cloudsmith-api-0.49.9 vendor/bundle/ruby/2.3.0/gems/typhoeus-1.3.1/lib/typhoeus/response/cacheable.rb
cloudsmith-api-0.44.4 vendor/bundle/ruby/2.3.0/gems/typhoeus-1.3.1/lib/typhoeus/response/cacheable.rb
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/typhoeus-1.3.0/lib/typhoeus/response/cacheable.rb
approveapi-1.0.8 vendor/bundle/ruby/2.6.0/gems/typhoeus-1.3.1/lib/typhoeus/response/cacheable.rb
approveapi-1.0.5 vendor/bundle/ruby/2.6.0/gems/typhoeus-1.3.1/lib/typhoeus/response/cacheable.rb
typhoeus-1.3.1 lib/typhoeus/response/cacheable.rb
cloudsmith-api-0.30.7 vendor/bundle/ruby/2.3.0/gems/typhoeus-1.3.0/lib/typhoeus/response/cacheable.rb
color_me_shop-1.0.0 vendor/bundle/ruby/2.5.0/gems/typhoeus-1.3.0/lib/typhoeus/response/cacheable.rb
cloudsmith-api-0.21.4 vendor/bundle/ruby/2.3.0/gems/typhoeus-1.3.0/lib/typhoeus/response/cacheable.rb
typhoeus-1.3.0 lib/typhoeus/response/cacheable.rb
typhoeus-1.1.2 lib/typhoeus/response/cacheable.rb
typhoeus-1.1.1 lib/typhoeus/response/cacheable.rb
typhoeus-1.1.0 lib/typhoeus/response/cacheable.rb
typhoeus-1.0.2 lib/typhoeus/response/cacheable.rb
typhoeus-1.0.1 lib/typhoeus/response/cacheable.rb
typhoeus-1.0.0 lib/typhoeus/response/cacheable.rb