lib/fastly/origin.rb in fastly-1.1.4 vs lib/fastly/origin.rb in fastly-1.1.5
- old
+ new
@@ -18,23 +18,22 @@
##
# :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?
+ hash = fetcher.client.post("#{Origin.put_path(self)}/director/#{director.name}")
+ !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?
+ hash = fetcher.client.delete("#{Origin.put_path(self)}/director/#{director.name}")
+ !hash.nil?
end
end
end