def rename(name)
        response = JSON.parse(CrateAPI::Base.call("#{CrateAPI::Base::CRATES_URL}/#{CrateAPI::Crates::CRATE_ACTIONS[:rename] % ["#{self.id}"]}", :post, {:body => {:name => name}}))
        raise CrateRenameError, response["message"] unless response["status"] != "failure"
      end
def rename(name)
        response = JSON.parse(CrateAPI::Base.call("#{CrateAPI::Base::CRATES_URL}/#{CrateAPI::Crates::CRATE_ACTIONS[:rename] % ["#{self.id}"]}", :post, {:body => {:name => name}}))
        raise CrateRenameError, response["message"] unless response["status"] != "failure"
      end
Renamed the given crate object.

 @return [CrateRenameError, nil] if there is an issue with renaming the crate, an error will be raised with the message explaining why.