Sha256: 07918e7be4b50bbda0f186a34d19683d91f2b340c06ec46bdf6474dbc4f3ef62
Contents?: true
Size: 974 Bytes
Versions: 2
Compression:
Stored size: 974 Bytes
Contents
class Fastly # A logical group of directors - for example the asset server directors from all your DCNs class Origin < BelongsToServiceAndVersion attr_accessor :service_id, :name, :comment ## # :attr: service_id # # The id of the service this belongs to. # ## # :attr: version # # The number of the version this belongs to. # ## # :attr: name # # The domain name of this domain # Add a Director object to an Origin # # Return true on success and false on failure def add_director(director) hash = fetcher.client.post(Fastly::Origin.put_path(self)+"/director/#{director.name}") return !hash.nil? end # Delete a Director object from an Origin # # Return true on success and false on failure def delete_director(director) hash = fetcher.client.delete(Fastly::Origin.put_path(self)+"/director/#{director.name}") return !hash.nil? end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fastly-1.1.4 | lib/fastly/origin.rb |
fastly-1.1.3 | lib/fastly/origin.rb |