Sha256: e7ef47c6420fccf85ea78571cd02e4ccd87eaabb8ce3b2383ff5fc9bb0951073
Contents?: true
Size: 663 Bytes
Versions: 19
Compression:
Stored size: 663 Bytes
Contents
class Fastly # VCL Snippets are blocks of VCL logic inserted into your service's configuration that don't require custom VCL. class DynamicSnippet < Base attr_accessor :service_id, :snippet_id, :content ## # :attr: service_id # # The id of the service this belongs to. # ## # :attr: content # # The VCL code that specifies exactly what the snippet does # ## # :attr: snippet_id # # The ID of this dynamic snippet # def self.get_path(object) "/service/#{object.service_id}/snippet/#{object.snippet_id}" end def self.put_path(object) get_path(object) end end end
Version data entries
19 entries across 19 versions & 1 rubygems