lib/fastly/origin.rb in fastly-1.1.2 vs lib/fastly/origin.rb in fastly-1.1.3

- old
+ new

@@ -1,40 +1,40 @@ 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) + 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) + def delete_director(director) hash = fetcher.client.delete(Fastly::Origin.put_path(self)+"/director/#{director.name}") return !hash.nil? end end -end \ No newline at end of file +end