Class: Fastly::Snippet
- Inherits:
-
BelongsToServiceAndVersion
- Object
- Base
- BelongsToServiceAndVersion
- Fastly::Snippet
- Defined in:
- lib/fastly/snippet.rb
Overview
VCL Snippets are blocks of VCL logic inserted into your service’s configuration that don’t require custom VCL.
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#dynamic ⇒ Object
Returns the value of attribute dynamic.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#service_id ⇒ Object
Returns the value of attribute service_id.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from BelongsToServiceAndVersion
Attributes inherited from Base
Method Summary
Methods inherited from BelongsToServiceAndVersion
#as_hash, delete_path, get_path, path_escape, post_path, put_path, #service, #version_number
Methods inherited from Base
#as_hash, #delete!, delete_path, get_path, #initialize, list_path, path, post_path, put_path, #require_api_key!, #save!
Constructor Details
This class inherits a constructor from Fastly::Base
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
4 5 6 |
# File 'lib/fastly/snippet.rb', line 4 def content @content end |
#dynamic ⇒ Object
Returns the value of attribute dynamic.
4 5 6 |
# File 'lib/fastly/snippet.rb', line 4 def dynamic @dynamic end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/fastly/snippet.rb', line 4 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/fastly/snippet.rb', line 4 def name @name end |
#priority ⇒ Object
Returns the value of attribute priority.
4 5 6 |
# File 'lib/fastly/snippet.rb', line 4 def priority @priority end |
#service_id ⇒ Object
Returns the value of attribute service_id.
4 5 6 |
# File 'lib/fastly/snippet.rb', line 4 def service_id @service_id end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/fastly/snippet.rb', line 4 def type @type end |