class Fastly::DynamicSnippet
VCL
Snippets are blocks of VCL
logic inserted into your service's configuration that don't require custom VCL
.
Attributes
content[RW]
The VCL
code that specifies exactly what the snippet does
service_id[RW]
The id of the service this belongs to.
snippet_id[RW]
Public Class Methods
get_path(object)
click to toggle source
:attr: snippet_id
The ID of this dynamic snippet
# File lib/fastly/dynamic_snippet.rb, line 23 def self.get_path(object) "/service/#{object.service_id}/snippet/#{object.snippet_id}" end
put_path(object)
click to toggle source
# File lib/fastly/dynamic_snippet.rb, line 27 def self.put_path(object) get_path(object) end