Class: Fastly::Director
- Inherits:
-
BelongsToServiceAndVersion
- Object
- Base
- BelongsToServiceAndVersion
- Fastly::Director
- Defined in:
- lib/fastly/director.rb
Overview
A logical collection of backends - for example all the asset servers in one data center
Instance Attribute Summary collapse
-
#capacity ⇒ Object
Returns the value of attribute capacity.
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#name ⇒ Object
Returns the value of attribute name.
-
#quorum ⇒ Object
Returns the value of attribute quorum.
-
#retries ⇒ Object
Returns the value of attribute retries.
-
#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
Instance Method Summary collapse
-
#add_backend(backend) ⇒ Object
Add a Backend object to a Director.
-
#delete_backend(backend) ⇒ Object
Delete a Backend object from a Director.
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
#capacity ⇒ Object
Returns the value of attribute capacity.
4 5 6 |
# File 'lib/fastly/director.rb', line 4 def capacity @capacity end |
#comment ⇒ Object
Returns the value of attribute comment.
4 5 6 |
# File 'lib/fastly/director.rb', line 4 def comment @comment end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/fastly/director.rb', line 4 def name @name end |
#quorum ⇒ Object
Returns the value of attribute quorum.
4 5 6 |
# File 'lib/fastly/director.rb', line 4 def quorum @quorum end |
#retries ⇒ Object
Returns the value of attribute retries.
4 5 6 |
# File 'lib/fastly/director.rb', line 4 def retries @retries end |
#service_id ⇒ Object
Returns the value of attribute service_id.
4 5 6 |
# File 'lib/fastly/director.rb', line 4 def service_id @service_id end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/fastly/director.rb', line 4 def type @type end |