class Fastly::Version
def generated_vcl(opts = {})
:include_content => true
Won't return the content of the VCL unless you pass in
Get the generated VCL object for this Version (which must have been activated first)
def generated_vcl(opts = {}) hash = fetcher.client.get("#{Version.put_path(self)}/generated_vcl", opts) opts = { 'content' => hash['vcl'] || hash['content'], 'name' => hash['md5'], 'version' => hash['version'], 'service_id' => hash['service'] } VCL.new(opts, fetcher) end