Sha256: 16ea47bf7131fb1b9965c3649f83fd1e483b12ab25d9cd665b2f4a3adcb87f2b
Contents?: true
Size: 887 Bytes
Versions: 39
Compression:
Stored size: 887 Bytes
Contents
class Fastly # An internal representation of a Varnish Configuration Language file class VCL < BelongsToServiceAndVersion attr_accessor :service_id, :name, :content, :comment, :main ## # :attr: service_id # # The id of the service this belongs to. # ## # :attr: name # # The name of the uploaded VCL # ## # :attr: version # # The number of the version this belongs to. # ## # :attr: content # # The content of this VCL # ## # :attr: comment # # a free form comment field # ## # :attr: main # # A boolean indicating if some specific VCL is the main VCL # ## # # Set VCL as main VCL # def set_main! hash = fetcher.client.put("/service/#{service.id}/version/#{version_number}/vcl/#{name}/main") !hash.nil? end end end
Version data entries
39 entries across 39 versions & 1 rubygems