Module: RestClient

Defined in:
lib/couchrest/monkeypatches.rb

Defined Under Namespace

Classes: Request

Class Method Summary collapse

Class Method Details

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



45
46
47
48
49
# File 'lib/couchrest/monkeypatches.rb', line 45

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

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



51
52
53
54
55
# File 'lib/couchrest/monkeypatches.rb', line 51

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