Module: RestClient

Defined in:
lib/couchrest/monkeypatches.rb

Class Method Summary collapse

Class Method Details

.copy(url, headers = {}) ⇒ Object



48
49
50
51
52
# File 'lib/couchrest/monkeypatches.rb', line 48

def self.copy(url, headers={})
  Request.execute(:method => :copy,
    :url => url,
    :headers => headers)
end

.move(url, headers = {}) ⇒ Object



54
55
56
57
58
# File 'lib/couchrest/monkeypatches.rb', line 54

def self.move(url, headers={})
  Request.execute(:method => :move,
  :url => url,
  :headers => headers)
end