Sha256: 2e03d6d4991d823044b4994bfeb11a06a605ccd2c8262ccee86fcab5ffa47754

Contents?: true

Size: 369 Bytes

Versions: 4

Compression:

Stored size: 369 Bytes

Contents

require 'fastly'

class Fastly::RequestSetting
  attr_accessor :timer_support
end

module Codily
  module FastlyExt
    def initialize(opts)
      super
      @opts = opts
    end

    def client(opts = nil)
      (Thread.current[:fastly_client] ||= {})[self.__id__] ||= Fastly::Client.new(opts || @opts)
    end
  end
end

Fastly.__send__(:prepend, Codily::FastlyExt)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
codily-0.3.1 lib/codily/fastly_ext.rb
codily-0.3.0 lib/codily/fastly_ext.rb
codily-0.2.0 lib/codily/fastly_ext.rb
codily-0.1.0.beta lib/codily/fastly_ext.rb