Sha256: 1927d52df501239c2099f9c7faf912cbb31491362905e6350e0faf53b31ae678
Contents?: true
Size: 360 Bytes
Versions: 2
Compression:
Stored size: 360 Bytes
Contents
require 'fastly' module FastlyRails # A simple wrapper around the fastly-ruby client. class Client < DelegateClass(Fastly) def initialize(opts={}) super(Fastly.new(opts)) end def purge_by_key(key) client.post purge_url(key) end def purge_url(key) "/service/#{FastlyRails.service_id}/purge/#{key}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fastly-rails-0.1.7 | lib/fastly-rails/client.rb |
fastly-rails-0.1.6 | lib/fastly-rails/client.rb |