Module: Codily::FastlyExt
- Defined in:
- lib/codily/fastly_ext.rb
Instance Method Summary collapse
Instance Method Details
#client(opts = nil) ⇒ Object
14 15 16 |
# File 'lib/codily/fastly_ext.rb', line 14 def client(opts = nil) (Thread.current[:fastly_client] ||= {})[self.__id__] ||= Fastly::Client.new(opts || @opts) end |
#initialize(opts) ⇒ Object
9 10 11 12 |
# File 'lib/codily/fastly_ext.rb', line 9 def initialize(opts) super @opts = opts end |