Class: Codily::Elements::Vcl

Inherits:
ServiceBelonggingBase show all
Includes:
FileLoadable
Defined in:
lib/codily/elements/vcl.rb

Instance Attribute Summary

Attributes inherited from Base

#fastly_obj, #root

Instance Method Summary collapse

Methods included from FileLoadable

included

Methods inherited from ServiceBelonggingBase

#as_hash, #initialize, #key, parent_class, #parent_key, #service_id, #service_name

Methods inherited from Base

#as_dsl_hash, #as_hash, def_attr, defaults, #dsl_args, #id, #initialize, #inspect, #key, #name, name_for_attr, #parent, #parent_class, parent_class, #parent_key, #parents, path

Constructor Details

This class inherits a constructor from Codily::Elements::ServiceBelonggingBase

Instance Method Details

#content(obj) ⇒ Object



9
10
11
# File 'lib/codily/elements/vcl.rb', line 9

def content(obj)
  getset :content, file_loadable(obj)
end

#fastly_classObject



17
18
19
# File 'lib/codily/elements/vcl.rb', line 17

def fastly_class
  Fastly::VCL
end

#main(bool = nil) ⇒ Object



13
14
15
# File 'lib/codily/elements/vcl.rb', line 13

def main(bool = nil)
  getset :main, bool
end