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

Version Path
fastly-3.0.2 lib/fastly/dynamic_snippet.rb
fastly-3.0.1 lib/fastly/dynamic_snippet.rb
fastly-3.0.0 lib/fastly/dynamic_snippet.rb
fastly-2.5.3 lib/fastly/dynamic_snippet.rb
fastly-2.5.2 lib/fastly/dynamic_snippet.rb
fastly-2.5.1 lib/fastly/dynamic_snippet.rb
fastly-2.5.0 lib/fastly/dynamic_snippet.rb
fastly-2.4.0 lib/fastly/dynamic_snippet.rb
fastly-2.3.1 lib/fastly/dynamic_snippet.rb
fastly-2.3.0 lib/fastly/dynamic_snippet.rb
fastly-2.2.0 lib/fastly/dynamic_snippet.rb
fastly-2.1.0 lib/fastly/dynamic_snippet.rb
fastly-2.0.0 lib/fastly/dynamic_snippet.rb
fastly-1.15.0 lib/fastly/dynamic_snippet.rb
fastly-1.14.0 lib/fastly/dynamic_snippet.rb
fastly-1.13.2 lib/fastly/dynamic_snippet.rb
fastly-1.13.1 lib/fastly/dynamic_snippet.rb
fastly-1.13.0 lib/fastly/dynamic_snippet.rb
fastly-1.12.0 lib/fastly/dynamic_snippet.rb