class MyBitcasa::Rename
Public Class Methods
new(from, to)
click to toggle source
# File lib/my_bitcasa/rename.rb, line 7 def initialize(from, to) @from = from @to = to end
Public Instance Methods
rename()
click to toggle source
# File lib/my_bitcasa/rename.rb, line 12 def rename res = connection.post do |req| req.url "/rename/" req.body = { from: @from, to: @to, } end res.body end